How to remove value form legend items labels ?

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

How to remove value form legend items labels ?

Post by dobe » Thu Jun 09, 2005 8:28 am

In previous versions, the value for each slice wasn't displayed. Now the default format is " label = value".

How can i remove the value so that i only have the label as before ?

Thanks a lot for this great chart library !

Rahul Gupta
Posts: 11
Joined: Wed Apr 20, 2005 1:55 pm
Location: India

Post by Rahul Gupta » Thu Jun 09, 2005 11:47 am

Hi dobe,

You can set the format of label. U just need to go LabelGenerator Class, there is a class level variable to set the format u want means what u want to see. And u can pass the format through contructor or a set method, as i know.

Just Go and check.
Rahul K. Gupta

Locked