histograms

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

histograms

Post by matt » Fri Jan 04, 2002 9:36 pm

hi,
I'd like to use JFreeChart to display histograms. Histograms differ from vertical bar charts in 3 simple ways:
1. bars are the same color
2. no gap between bars
3. horizontal axis is a value axis, not a category axis.

1 is straightforward, but it seems that to accomplish 2 and 3 I need to write a new histogram class that's a cross between verticalBarPlot and XYPlot that draws bars on two value axes.

Has anybody done this before, or is anybody working on this?
Thanks,
matt

David Gilbert

RE: histograms

Post by David Gilbert » Sat Jan 05, 2002 7:25 am

Hi Matt,

The VerticalXYBarPlot class draws a bar plot using a numerical x-axis. I think you should be able to use this for histograms. It uses the IntervalXYDataset interface for data...

Regards,

DG.

Locked