Monday, 9 September 2013

JFreeChart - ChartFactory.createXYStepChart with to-concept

JFreeChart - ChartFactory.createXYStepChart with to-concept

By default XYStepChart in JFreeChart implements "from concept" what means
that if we have following data: (1,4), (2,5) the step chart is drawn like
this:
horizontal line from x=1 to x=2 with y=4
vertical line in x=2 (to value y=5).
I would like to draw those data on the step chart with "to concept" what
means:
horizontal line from x=0 to x=1 with y=4
vertical line in x=1 (to value y=5)
horizontal line from x=1 to x=2 with y=5
Does JFreeChart support such concept by default or I would have to
implement it by myself (by modyfying input data for example)?
Maybe you know another Java charting library which supports mentioned to
concept?

No comments:

Post a Comment