How to show the values on the bars?

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

How to show the values on the bars?

Post by Harald » Thu Nov 06, 2003 11:51 pm

How can I show the values on the bars in a BarChart? I want to have the exact values here in addition to the value axis. I have tried the setItemLabelsVisible(true), but it doesn't work.


Thanks.



Harald

Kartik
Posts: 21
Joined: Fri Nov 07, 2003 8:17 am

Values on bars in BarChart

Post by Kartik » Fri Nov 07, 2003 8:23 am

Hi Harald,

I have used the following code for generating the item labels in my bar chart.

BarRenderer renderer = (BarRenderer) plot.getRenderer();
renderer.setItemLabelsVisible(true);

Hope this helps.

regards,

Kartik

akkeri
Posts: 13
Joined: Sat Nov 22, 2003 10:50 pm

haw can i show values for pie charts

Post by akkeri » Thu Nov 27, 2003 11:24 pm

haw can i do the same for 3Dpie charts.

Locked