Draw Graphics like "Stairs"

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

Draw Graphics like "Stairs"

Post by Bart » Tue Mar 11, 2003 9:54 am

HEllo,
I would like to create a graphic drawing the plot like stairs, but I didn' t find it in the examples.
what kind of chart should I use ?

PS: sorry for the previous post, I am a little tired ....

David Gilbert

Re: Draw Graphics like "Stairs"

Post by David Gilbert » Tue Mar 11, 2003 2:19 pm

Maybe you mean something like the XYStepChartDemo application? In the src/com/jrefinery/chart/demo directory in the distribution...

Regards,

Dave Gilbert

Bart

Re: Draw Graphics like "Stairs"

Post by Bart » Tue Mar 11, 2003 3:54 pm

Yes, that's what I should use, but Iis it possible to use it with a CombinedXYPlot ?

Bart

Re: Draw Graphics like "Stairs"

Post by Bart » Tue Mar 11, 2003 4:22 pm

ok, I think I find a solution:
I change the renderer:
XYItemRenderer rendererI = new StandardXYItemRenderer();
by:
XYItemRenderer rendererI = new XYStepRenderer();

Locked