Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » how to set data set column as label for value series in a pie chart(how to set data set column as label for value series in a pie chart)
how to set data set column as label for value series in a pie chart [message #788017] Wed, 01 February 2012 08:51 Go to next message
Akshay Jain is currently offline Akshay JainFriend
Messages: 2
Registered: February 2012
Junior Member
Can we have a data set column as label for value series in a pie chart. Suppose my PL/SQL proc returns three columns as "Name", "Count_1" and "Count_2" and I set the pie slice size to be defined by Count_1. So the labels of pie slices will by default be Count_1 values. Now I want the label of pie slices be <Count_1 (Count_2)>. How can this be done?
Re: how to set data set column as label for value series in a pie chart [message #789226 is a reply to message #788017] Thu, 02 February 2012 19:01 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

One way to do this is to load up a global variable from a hidden table
and then reference it in chart script. Look at the attached example.
Specifically the oncreate for the table detail row and the
beforeDrawDataPointLabel script on the chart.

Jason

On 2/1/2012 3:51 AM, Akshay Jain wrote:
> Can we have a data set column as label for value series in a pie chart.
> Suppose my PL/SQL proc returns three columns as "Name", "Count_1" and
> "Count_2" and I set the pie slice size to be defined by Count_1. So the
> labels of pie slices will by default be Count_1 values. Now I want the
> label of pie slices be <Count_1 (Count_2)>. How can this be done?
Re: how to set data set column as label for value series in a pie chart [message #789230 is a reply to message #788017] Thu, 02 February 2012 19:01 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

One way to do this is to load up a global variable from a hidden table
and then reference it in chart script. Look at the attached example.
Specifically the oncreate for the table detail row and the
beforeDrawDataPointLabel script on the chart.

Jason

On 2/1/2012 3:51 AM, Akshay Jain wrote:
> Can we have a data set column as label for value series in a pie chart.
> Suppose my PL/SQL proc returns three columns as "Name", "Count_1" and
> "Count_2" and I set the pie slice size to be defined by Count_1. So the
> labels of pie slices will by default be Count_1 values. Now I want the
> label of pie slices be <Count_1 (Count_2)>. How can this be done?
Re: how to set data set column as label for value series in a pie chart [message #789556 is a reply to message #789226] Fri, 03 February 2012 05:34 Go to previous messageGo to next message
Akshay Jain is currently offline Akshay JainFriend
Messages: 2
Registered: February 2012
Junior Member
Thanks Jason. It works well.

But I guess this could be a new feature wherein labels can be bound to data set rows so that workarounds are not needed. I mean if I can have data set bounding for mouseover action then surely I should be allowed to add it to labels.
Re: how to set data set column as label for value series in a pie chart [message #789982 is a reply to message #789556] Fri, 03 February 2012 16:45 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Agreed. I looked through bugzilla on this one and found:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=158875

This was marked as a duplicate, but the duplicate bug was marked as
fixed, which was only a partial fix. Can you open another bugzilla
entry for this one?

Jason

On 2/3/2012 12:34 AM, Akshay Jain wrote:
> Thanks Jason. It works well.
> But I guess this could be a new feature wherein labels can be bound to
> data set rows so that workarounds are not needed. I mean if I can have
> data set bounding for mouseover action then surely I should be allowed
> to add it to labels.
Previous Topic:Image not showing in PDF
Next Topic:"vertical" page breaks
Goto Forum:
  


Current Time: Wed Apr 24 22:23:32 GMT 2024

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

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

Back to the top