paretochart - lines covered by the bars

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

paretochart - lines covered by the bars

Post by guest » Sun Nov 14, 2004 5:26 am

hi, i am using the jfreechart's paretochart example to draw bars and lines on the same chart. however, i notice that the bars will cover the lines. is there anything i can set so that the lines will be drawn above/over the bars?

guest

Post by guest » Mon Nov 15, 2004 4:12 pm

hi hi nobody can help me..?? or is the answer within the forums already?? i didn't find any in the forums.. can someone help please..

pstevlingson
Posts: 2
Joined: Fri Nov 12, 2004 5:00 pm

Post by pstevlingson » Mon Nov 15, 2004 4:27 pm

try plot.setDatasetRenderingOrder(DatasetRenderingOrder.REVERSE);

guest

Post by guest » Mon Nov 15, 2004 4:52 pm

hi, it didn't work.. is it supposed to??
btw, is it due to my paretochart being somewhat different.. cos i'm using 3 datasets.. i've drawn 2 bars plus 2 lines. some portion of the line is covered by the bars.. please help..

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Mon Nov 15, 2004 5:32 pm

pstevlingson wrote:try plot.setDatasetRenderingOrder(DatasetRenderingOrder.REVERSE);
In the latest release, this is the default, but it changed one or two versions ago. So try changing it to DatasetRenderingOrder.FORWARD and see if that helps.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked