Removing values from legend of pie chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
vcardona
Posts: 10
Joined: Tue Mar 29, 2005 9:31 pm

Removing values from legend of pie chart

Post by vcardona » Fri Apr 08, 2005 3:24 pm

I noticed that the legend on a pie chart contains the value of each slice. Is there a way to not display the value? For example, if a slice in the pie chart represents the number of cars in a car lot, the legend will display "cars = 10". Basically, it displays the same label as the tooltips and callouts.

timw
Posts: 20
Joined: Fri Mar 18, 2005 12:36 pm
Location: London

Post by timw » Fri Apr 08, 2005 3:52 pm

This is done by setting the legend label generator. Described in this post:

http://www.jfree.org/phpBB2/viewtopic.php?t=12331

Locked