Vertical Barchart

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

Vertical Barchart

Post by Siva » Mon Jan 20, 2003 10:10 pm

Hi

What i have to do if i want to diasplay the data values at the top of the each bar in avertical bar chart?(Like displaying in a line chart)

Thanks

Siva

Don Mitchell

Re: Vertical Barchart

Post by Don Mitchell » Mon Jan 20, 2003 10:53 pm

Siva,

Use the following lines:

CategoryPlot categoryPlot = chart.getCategoryPlot();
categoryPlot.setValueLabelsVisible(true);

This will give you the point values at the top of the bars. It doesn't work for stacked bars, though.

Don

Geetha Swamy

changing default color

Post by Geetha Swamy » Wed Jan 22, 2003 12:54 am

Is there a way of changing the default colors of vertical bar charts?

Geetha

David Gilbert

Re: Vertical Barchart

Post by David Gilbert » Wed Jan 22, 2003 4:26 pm

Use the setSeriesPaint(...) methods in the Plot class.

Regards,

Dave Gilbert

Locked