setEndType does not seem to work with null values.

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Arkkimaagi
Posts: 25
Joined: Wed Jun 09, 2004 6:15 am
Location: Helsinki, Finland
Contact:

setEndType does not seem to work with null values.

Post by Arkkimaagi » Thu Jun 30, 2005 12:12 pm

I was having the same problem as these users:
http://www.jfree.org/phpBB2/viewtopic.p ... earenderer
And I was able to solve the situation with a similar solution.

First of all, AreaRenderer end type being default to TAPER seems kinda odd, as I can not imagine a situation it would be useful.

However, my areachart does not start from the leftmost category, therefore there are few null values.

Apparently the endtype changes back to TAPER from TRUNCATE when the areachart starts or ends with null values.

I'm using the latest JFreechart.

Am I doing something wrong, or is this a bug?
~ Arkkimaagi ~
Experto Credite

Arkkimaagi
Posts: 25
Joined: Wed Jun 09, 2004 6:15 am
Location: Helsinki, Finland
Contact:

Post by Arkkimaagi » Thu Jun 30, 2005 12:14 pm

Image

Here is a sample image of the situation.

Also, there's a problem with the category labels, they seem to be aligned according to their rightmost edge. I'll have to do a search for that on the forum still, but if you have quick pointers, it would help.
~ Arkkimaagi ~
Experto Credite

Locked