customize legend entry value [message #204071] |
Thu, 30 November 2006 10:36 |
Eclipse User |
|
|
|
Ok,
I give up. Few hours and I didn't find the solution,
how to dynamically set up legend entry (category) value.
Investigating DataPointHints it shall be possible to
specify category display value, but I cannot figure out
when (which method) and how (which object/method).
The workaround could be to assign it in
function beforeDrawLegendEntry( label, context );
but there is no access to the value (orders -> 20)
I searched context.getChartInstance().getSeriesForLegend()[0].getSeries ()
And even if I found values (slice sizes) there,
I could not match current processed legend entry with them,
because there is no cursor variable (e.g. you are processing
third legend entry).
If I have such data set:
category | slice size
---------------------
cmptr | 30
mntr | 20
how can I set such legend entries:
Computers (30)
Monitors (20)
(if category value is mntr, display Monitors
and append slice size in parenthesis. This is
just example, what I want to achieve.)
Is it possible?
Leos
|
|
|
Powered by
FUDForum. Page generated in 0.03470 seconds