|
|
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   |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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...
>>
>>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04036 seconds