Date/Time axis label localization issue [message #249129] |
Fri, 20 July 2007 13:10 |
Eclipse User |
|
|
|
Originally posted by: Joseph.Hurley.fast.no
Hello everyone,
I have a report with a scatter chart which has a date/time x-axis. The
x-axis labels are formatted (dd-MMM YYYY), but i would like them to
follow the __locale parameter specifically so it spells/capitalizes the
month correctly.
for example 07-Jul 2007 when the locale is en_US,
but 07-juli 2007 when the locale is no_NO
the rest of the report seems to follow the __locale parameter perfectly,
but for some reason the x-axis labels use the default jvm locale instead.
if the jvm locale is set to en_US and the __local parameter is no_NO,
then the x-axis labels will follow the US way while the rest of the
report is in Norwegian.
is this a known issue? am i doing something wrong? thanks for any help,
I'm using the birt 2.2.0 release by the way.
Joe
|
|
|
Re: Date/Time axis label localization issue [message #249134 is a reply to message #249129] |
Fri, 20 July 2007 13:26 |
David Michonneau Messages: 1145 Registered: July 2009 |
Senior Member |
|
|
Hi,
Did you set the Axis type as DateTime? If yes, you also need to click the
format button and choose "Standard" with the type and details you want.
Thanks,
David
"Joe Hurley" <Joseph.Hurley@fast.no> wrote in message
news:f7qc7b$sm5$1@build.eclipse.org...
> Hello everyone,
>
> I have a report with a scatter chart which has a date/time x-axis. The
> x-axis labels are formatted (dd-MMM YYYY), but i would like them to follow
> the __locale parameter specifically so it spells/capitalizes the month
> correctly.
>
> for example 07-Jul 2007 when the locale is en_US,
> but 07-juli 2007 when the locale is no_NO
>
> the rest of the report seems to follow the __locale parameter perfectly,
> but for some reason the x-axis labels use the default jvm locale instead.
>
> if the jvm locale is set to en_US and the __local parameter is no_NO, then
> the x-axis labels will follow the US way while the rest of the report is
> in Norwegian.
>
> is this a known issue? am i doing something wrong? thanks for any help,
> I'm using the birt 2.2.0 release by the way.
>
> Joe
|
|
|
Re: Date/Time axis label localization issue [message #249149 is a reply to message #249134] |
Fri, 20 July 2007 13:45 |
Eclipse User |
|
|
|
Originally posted by: Joseph.Hurley.fast.no
Hey,
well i was actually using the chart script to control this because i
want the pattern to change based on the scope of the data. i dont need
to show seconds when the x-axis spans multiple days.
I use the following code for the case that matters:
chart.getBaseAxes()[0].setFormatSpecifier(Packages.org.eclip se.birt.chart.model.attribute.impl.JavaDateFormatSpecifierIm pl.create( "dd-MMM
HH:mm"));
I played with it a bit more, and it seems that it doesnt follow the
__locale param for the advanced pattern choice, but i did get your
suggestion to work. Unfortunately, the standard patterns are not
sufficient for my needs.
do you have any other suggestions?
Thanks,
Joe
David Michonneau wrote:
> Hi,
>
> Did you set the Axis type as DateTime? If yes, you also need to click the
> format button and choose "Standard" with the type and details you want.
>
> Thanks,
>
> David
>
>
> "Joe Hurley" <Joseph.Hurley@fast.no> wrote in message
> news:f7qc7b$sm5$1@build.eclipse.org...
>> Hello everyone,
>>
>> I have a report with a scatter chart which has a date/time x-axis. The
>> x-axis labels are formatted (dd-MMM YYYY), but i would like them to follow
>> the __locale parameter specifically so it spells/capitalizes the month
>> correctly.
>>
>> for example 07-Jul 2007 when the locale is en_US,
>> but 07-juli 2007 when the locale is no_NO
>>
>> the rest of the report seems to follow the __locale parameter perfectly,
>> but for some reason the x-axis labels use the default jvm locale instead.
>>
>> if the jvm locale is set to en_US and the __local parameter is no_NO, then
>> the x-axis labels will follow the US way while the rest of the report is
>> in Norwegian.
>>
>> is this a known issue? am i doing something wrong? thanks for any help,
>> I'm using the birt 2.2.0 release by the way.
>>
>> Joe
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03470 seconds