StackedBarChart percentages in tooltips and itemlabels

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
dings
Posts: 7
Joined: Fri May 04, 2007 10:22 am

StackedBarChart percentages in tooltips and itemlabels

Post by dings » Tue Jun 19, 2007 3:00 pm

How would I go about making the ItemLabels and ToolTips
display percentages? Or preferably both percentages and values.

I guess I should be able to calculate it by looping through the
dataset, but seems like the functionality is there, and I'm missing it. :)

I am also wondering whether this can be done in a BarChart.
Calculating the percentage of entire plot or group and using this
in tooltips or ItemLabels.

Locked