Displaying Value of a Vertical Bar just over the Bar

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

Displaying Value of a Vertical Bar just over the Bar

Post by Murat » Thu Jan 30, 2003 4:27 pm

Hi;
I am using JFreeChart in a servlet/jsp application.Everything goes fine but i need to display value of a VerticalBar just over the Verticalbar. And same problem with Pie chart, I need to display the value of each piece on the pie graph. Thanx.

David Gilbert

Re: Displaying Value of a Vertical Bar just over the Bar

Post by David Gilbert » Thu Jan 30, 2003 9:05 pm

For bar charts, there is a setValueLabelsVisible(...) method in the CategoryPlot class. Works for some charts, not others.

For pie charts, you can control the label type with the setSectionLabelType(...) method.

Regards,

Dave Gilbert

Murat

Re: Displaying Value of a Vertical Bar just over the Bar

Post by Murat » Fri Jan 31, 2003 9:01 am

Thanks David, it works. But setLabelsVisible(true) method seems deprecated.

Locked