Simple Bar Chart

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

Simple Bar Chart

Post by Brian » Thu Oct 31, 2002 12:52 am

I am playing around with the simple VerticalBarChartDemo and
would like to place the actual value right above each vertical line.

Is this possible??

Or is there another way to accomplish something close to this??

Dave Gilbert

Re: Simple Bar Chart

Post by Dave Gilbert » Thu Oct 31, 2002 10:49 am

Yes, you can use the setValueLabelsVisible(boolean) method in the CategoryPlot class:

CategoryPlot plot = myChart.getCategoryPlot();
plot.setValueLabelsVisible(true);

This works for line charts and some bar charts, but needs more work still. Try it out and see if it works for you...

Regards,

DG.

Locked