some 0.9.5 issues.

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Mof

some 0.9.5 issues.

Post by Mof » Mon Feb 10, 2003 11:41 pm

First off I'd like to say that I actually like alot of the API changes that were made.
But I have been porting my stuff from 0.9.4 to 0.9.5 and have come across some issues.

1 - When shapes are rendered they are assumed to be 6x6 which is not always the case, and in my particular case it means that the shapes are drawn in the wrong position. (LineAndShapeRenderer)

2 - When I set the category colours for a LineAndShapeRenderer, I don't expect the line to change colour, but just the shape. I also would expect for another method that allows me the change the line colour. (Should I add this myself, or has it already been done ?)

3 - I am also no longer seeing any of the category names being displayed at the bottom of the chart in a vertical category plot.

I am using the OverlaidCategoryPlot.

Thanks.
Mof.

Mof

Re: some 0.9.5 issues.

Post by Mof » Tue Feb 11, 2003 5:11 am

Also I have noticed that the AreaRenderer doesn't render correctly for me.
I get gaps between each category, which makes it look more like a wierd bar graph :-).
I wonder if this has anything to do with the OverlaidCategoryPlot ?.....

Mof.

David Gilbert

Re: some 0.9.5 issues.

Post by David Gilbert » Tue Feb 11, 2003 9:40 am

Mof wrote:
> 1 - When shapes are rendered they are assumed to be 6x6 which
> is not always the case, and in my particular case it means
> that the shapes are drawn in the wrong position.
> (LineAndShapeRenderer)

There's no assumption about the size, only that the shape is *centered* at (0, 0).

> 2 - When I set the category colours for a
> LineAndShapeRenderer, I don't expect the line to change
> colour, but just the shape. I also would expect for another
> method that allows me the change the line colour. (Should I
> add this myself, or has it already been done ?)

The series color is used for both, since the renderer can display lines only, or shapes only, or lines AND shapes.

> 3 - I am also no longer seeing any of the category names
> being displayed at the bottom of the chart in a vertical
> category plot.

I've added this to the bug database (id 684455) on SourceForge.

Regards,

Dave Gilbert

David Gilbert

Re: some 0.9.5 issues.

Post by David Gilbert » Tue Feb 11, 2003 9:42 am

There have been some changes in the renderer. Now the area is drawn as a sequence of polygons. You need to make sure the category gaps are set to zero (controlled by the axis):

domainAxis.setCategoryMargin(0.0);

Regards,

Dave Gilbert

Mof

Re: some 0.9.5 issues.

Post by Mof » Thu Feb 13, 2003 7:18 am

The problem with this solution is that when I try to render a bar chart on the same axis, the bars are all stuck next to each other.

Mof.

Locked