Bar Chart Labels

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

Bar Chart Labels

Post by Ratnakar Malla » Fri Nov 01, 2002 11:41 pm

Hi,

I am right now displaying the value at the top of each bar in Barchart.
Now, I would like to display some text at the top of bar like " You stand here".

how do i do that?

Thanks,
Ratnakar

Dave Gilbert

Re: Bar Chart Labels

Post by Dave Gilbert » Mon Nov 04, 2002 10:36 am

Hi Ratnakar,

At the moment, you can't. You can do this for an XYPlot using chart annotations, but I haven't extended this to the CategoryPlot class yet. It won't be difficult, time is the only problem...

Regards,

DG

Alejandro Alvarez

Re: Bar Chart Labels

Post by Alejandro Alvarez » Sun Nov 10, 2002 11:35 pm

How did you display the labels at top of bar charts?

Thanks?

Dave Gilbert

Re: Bar Chart Labels

Post by Dave Gilbert » Mon Nov 11, 2002 10:23 am

In the CategoryPlot class, there is a method setValueLabelsVisible(boolean). Setting this to true will display values above each bar.

Regards,

DG.

Locked