[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.birt] Re: Charts: Is there a way to programmatically display legend names?

Ameena,

I just added an example to birt-exchange that does this.  take a look at
http://www.birt-exchange.com/devshare/designing-birt-reports/590-chart-script-example-of-modifying-series-entries-in-the-legend/

Check the description for info on how it works.

Jason

Ameena wrote:
Hello,
I have a very simple line graph.
Is there a way to set the value of a legend name in a non-hardcoded way??

For example:
Right now I have to go to Format Chart -> Series -> and then set the name of the legend name in the 'Title' box.


What I would like to do instead is have one of my MySQL attributes to be the name of the legend. For example:
select name from table => foo


I would like "foo" to be the name of the legend, but have that retrieved from the MySql query instead of hardcoding the name "foo". Is there a way to do this?

Thank you,
Ameena