Skip to main content



      Home
Home » Archived » BIRT » How can I set to title of series in the legend with output column?
How can I set to title of series in the legend with output column? [message #128644] Sat, 11 February 2006 06:08 Go to next message
Eclipse UserFriend
Hi.
I tried to set to title of series in the legend with output column(ex> row["Header"]).
But, when reporting, my legend just shows literally "row["Header"]", not value of row["Header"].
How can I set to title of series with value of ouput column?
Please let me know...
Re: How can I set to title of series in the legend with output column? [message #128681 is a reply to message #128644] Sat, 11 February 2006 10:27 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

The title of series cannot evaluate expressions, it can only accept static
text. However you can use scripting (go to script tab in the designer) to
change the series title, by using some value from the dataset. See the
org.eclipse.birt.chart.examples plugin for examples of scripting.

Thanks,

David

"bluetone" <vast-world@daum.net> wrote in message
news:Xns9767CCD51BE4Dbluetone@206.191.52.34...
> Hi.
> I tried to set to title of series in the legend with output column(ex>
> row["Header"]).
> But, when reporting, my legend just shows literally "row["Header"]", not
> value of row["Header"].
> How can I set to title of series with value of ouput column?
> Please let me know...
Re: How can I set to title of series in the legend with output column? [message #128922 is a reply to message #128681] Mon, 13 February 2006 03:14 Go to previous messageGo to next message
Eclipse UserFriend
Hi, David!

Thanks for your kind answer and I successfully could set to optional value with the title of series in
'beforeDrawLegendEntry' script function.
But, I don't know how to get some value from the dataset in using chart script.
Could you explain more detail or show some examples?

Thanks.


"David Michonneau" <dmichonneau@actuate.com> wrote in
news:dskvpv$ub9$1@utils.eclipse.org:

> Hi,
>
> The title of series cannot evaluate expressions, it can only accept
> static text. However you can use scripting (go to script tab in the
> designer) to change the series title, by using some value from the
> dataset. See the org.eclipse.birt.chart.examples plugin for examples
> of scripting.
>
> Thanks,
>
> David
>
> "bluetone" <vast-world@daum.net> wrote in message
> news:Xns9767CCD51BE4Dbluetone@206.191.52.34...
>> Hi.
>> I tried to set to title of series in the legend with output
>> column(ex> row["Header"]).
>> But, when reporting, my legend just shows literally "row["Header"]",
>> not value of row["Header"].
>> How can I set to title of series with value of ouput column?
>> Please let me know...
>
>
Re: How can I set to title of series in the legend with output column? [message #129090 is a reply to message #128922] Mon, 13 February 2006 08:24 Go to previous message
Eclipse UserFriend
Hi,

Unfortunately beforeDrawLegendEntry doesn't provide any direct hook to the
data. I would like to take a step back to understand what you try to achieve
exactly. If you evaluate something like row["..."] in the legend, it will
obviously show only the first value only, which might not be what you want?
There is actually a setting "Show Value" in the legend screen of the builder
that does that when you color by series (it actually appends the value under
the series name)

Have you tried to color you chart by categories, maybe it's exactly what you
need. In this case, the coloring will change and each legend entry will map
one category value.

Thanks,

David

"bluetone" <vast-world@daum.net> wrote in message
news:Xns9769AF651B157bluetone@206.191.52.34...
> Hi, David!
>
> Thanks for your kind answer and I successfully could set to optional value
> with the title of series in
> 'beforeDrawLegendEntry' script function.
> But, I don't know how to get some value from the dataset in using chart
> script.
> Could you explain more detail or show some examples?
>
> Thanks.
>
>
> "David Michonneau" <dmichonneau@actuate.com> wrote in
> news:dskvpv$ub9$1@utils.eclipse.org:
>
>> Hi,
>>
>> The title of series cannot evaluate expressions, it can only accept
>> static text. However you can use scripting (go to script tab in the
>> designer) to change the series title, by using some value from the
>> dataset. See the org.eclipse.birt.chart.examples plugin for examples
>> of scripting.
>>
>> Thanks,
>>
>> David
>>
>> "bluetone" <vast-world@daum.net> wrote in message
>> news:Xns9767CCD51BE4Dbluetone@206.191.52.34...
>>> Hi.
>>> I tried to set to title of series in the legend with output
>>> column(ex> row["Header"]).
>>> But, when reporting, my legend just shows literally "row["Header"]",
>>> not value of row["Header"].
>>> How can I set to title of series with value of ouput column?
>>> Please let me know...
>>
>>
>
Previous Topic:Reg : How to combine two chart reports into a single one
Next Topic:Why doesn't 'beforeDataSetFilled' function be called in chart script?
Goto Forum:
  


Current Time: Sat Jul 19 18:27:43 EDT 2025

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

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

Back to the top