Standard Deviation Chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Post Reply
Vito Limandibhrata

Standard Deviation Chart

Post by Vito Limandibhrata » Sun Oct 15, 2000 2:45 am

Hi,

I am using JFreeChart to draw the concrete strength test result
distribution using a bar plot.
However, I need to drawthe standard distribution line plot
superimposed on the bar plot.
My question,
1.is it possible to draw 2 plots of different types?
2.is there any build-in function to draw the standard deviation plot?

one more unrelated question,
is it possible to make the legend invisible or to move the legend box
to on top or below the chart area?

Thanks,

Regards,

Vito

David Gilbert

RE: Standard Deviation Chart

Post by David Gilbert » Sun Oct 15, 2000 10:57 am

Hi Vito,

You can't draw two different plot types on one chart in the current version of JFreeChart. However, I plan to add this to a future version, because I need to be able to draw price-volume charts (a line plot for prices, and a bar chart for daily volumes).

At the moment, I'm thinking about how to generalise this so that other combinations are possible - the major complication is handling the axes. How soon all this will happen is hard to say!

Regarding the legend, you can set it to null with:

yourChart.setLegend(null);

...although I think there is still a bug outstanding where the chart insets aren't quite right without the legend. The legend position is fixed in the current version (right hand side only) but in the next version you should be able to place it at the top, bottom, left or right.

Regards,

DG.

Post Reply