Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Newbie: Chart - (localized?) content of legend
Newbie: Chart - (localized?) content of legend [message #522489] Mon, 22 March 2010 18:58 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Newbie: Localization with dynamic values
Next Topic:Cannot find Chart class
Goto Forum:
  


Current Time: Fri Apr 26 04:49:53 GMT 2024

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

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

Back to the top