Skip to main content



      Home
Home » Archived » BIRT » customize legend entry value
customize legend entry value [message #204071] Thu, 30 November 2006 10:36
Eclipse UserFriend
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
Previous Topic:Assigning slice colors in pie chart dynamically broken? See attached image
Next Topic:turn off logging for charts
Goto Forum:
  


Current Time: Sat May 10 23:00:55 EDT 2025

Powered by FUDForum. Page generated in 0.03470 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top