Newbie: Chart - (localized?) content of legend [message #522489] |
Mon, 22 March 2010 18:58 |
Eclipse User |
|
|
|
Originally posted by: Joachim.Wesenberg.de
Is there any way to change the content of the legend ideally to localize it.
I produced a chart made up of 4 series (2 bar chart series and 2 line
chart series). The content printed as 'Series 1', 'Series 2' a.s.o. does
not really explain what is meant to be.
Many thanks in advance for your help.
Best regards - Jo Wesenberg
|
|
|
Re: Newbie: Chart - (localized?) content of legend [message #522974 is a reply to message #522489] |
Wed, 24 March 2010 16:18 |
|
Joachim,
Try something like this beforeDrawLegendItem script:
function beforeDrawLegendItem( lerh, bounds, icsc )
{
icsc.getExternalContext().getScriptable().getMessage(lerh.ge tLabel().getCaption().getValue(),
icsc.getLocale() );
}
Jason
Joachim Wesenberg wrote:
> Is there any way to change the content of the legend ideally to localize
> it.
>
> I produced a chart made up of 4 series (2 bar chart series and 2 line
> chart series). The content printed as 'Series 1', 'Series 2' a.s.o. does
> not really explain what is meant to be.
>
> Many thanks in advance for your help.
>
> Best regards - Jo Wesenberg
|
|
|
Re: Newbie: Chart - (localized?) content of legend [message #523287 is a reply to message #522974] |
Thu, 25 March 2010 18:52 |
Eclipse User |
|
|
|
Originally posted by: Joachim.Wesenberg.de
Jason,
thanks you for your help. Meanwhile I found the answer in the Report
Designer:
Edit Chart / Format Chart / Value (Y) Series-n / Title / Externalize Text
Thanks again
Joachim
Am 24.03.2010 17:18, schrieb Jason Weathersby:
> Joachim,
>
> Try something like this beforeDrawLegendItem script:
>
> function beforeDrawLegendItem( lerh, bounds, icsc )
> {
> icsc.getExternalContext().getScriptable().getMessage(lerh.ge tLabel().getCaption().getValue(),
> icsc.getLocale() );
> }
>
> Jason
>
> Joachim Wesenberg wrote:
>> Is there any way to change the content of the legend ideally to
>> localize it.
>>
>> I produced a chart made up of 4 series (2 bar chart series and 2 line
>> chart series). The content printed as 'Series 1', 'Series 2' a.s.o.
>> does not really explain what is meant to be.
>>
>> Many thanks in advance for your help.
>>
>> Best regards - Jo Wesenberg
|
|
|
Powered by
FUDForum. Page generated in 0.03478 seconds