encodle / gflot

Automatically exported from code.google.com/p/gflot
0 stars 0 forks source link

In a pie charts label formatter only the percentage is available #52

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Me again :-)

In the Formatter.format() method, the Series provides a getPercent() method but 
not a getValue() method. Sometimes it is useful to show the absolute value. I 
now only can do this with a workaround, by passing the absolute value as the 
series' label, because the label is also passed to format().

Original issue reported on code.google.com by wolfgang...@movilitas.com on 12 Jun 2012 at 2:52

GoogleCodeExporter commented 8 years ago
You can get it via getData like this :
series.getData().getY( 0 )

Original comment by nmr.morel on 12 Jun 2012 at 8:17

GoogleCodeExporter commented 8 years ago
There is no series.getData() method. I'm using 2.4.1

Original comment by wolfgang...@movilitas.com on 14 Jun 2012 at 11:58

GoogleCodeExporter commented 8 years ago
You're right, the getData() method isn't public in 2.4.1, only in trunk. I'll 
probably look at the multibar plugin this week-end and publish a new version.

Original comment by nmr.morel on 14 Jun 2012 at 5:14

GoogleCodeExporter commented 8 years ago

Original comment by nmr.morel on 16 Jun 2012 at 4:31