Skip to main content



      Home
Home » Archived » BIRT » expression for X-AXIS label
expression for X-AXIS label [message #143061] Fri, 10 March 2006 15:26 Go to next message
Eclipse UserFriend
I'd like to know if there is a possibility to use expression to define
value of X-AXIS label.

For example my Category X (Series)is row["MonthNumber"] and because of
that
X-AXIS labels show numbers that represent months. I need that X-AXIS
labels show name of month not number representing month.
To reach that goal I would use expression: months[row["MonthNumber"]]
where months is just array holding relevant names.
Can I do that?
It seems that the Birt doesn't support this functionality.
Re: expression for X-AXIS label [message #143133 is a reply to message #143061] Fri, 10 March 2006 17:40 Go to previous messageGo to next message
Eclipse UserFriend
Try using scripting to change the x axis label. You can write some
javascript to convert the number to a month.

Thanks,

David

"Vladimir" <vladperl@hotmail.com> wrote in message
news:ee344040d81f403357001139e06afce3$1@www.eclipse.org...
> I'd like to know if there is a possibility to use expression to define
> value of X-AXIS label.
>
> For example my Category X (Series)is row["MonthNumber"] and because of
> that X-AXIS labels show numbers that represent months. I need that X-AXIS
> labels show name of month not number representing month.
> To reach that goal I would use expression: months[row["MonthNumber"]]
> where months is just array holding relevant names.
> Can I do that?
> It seems that the Birt doesn't support this functionality.
>
Re: expression for X-AXIS label [message #143520 is a reply to message #143133] Mon, 13 March 2006 11:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vladperl.semanticprogrammer.org

Hi David,

> Try using scripting to change the x axis label. You can write some
> javascript to convert the number to a month.

I have tried to put javascript: months[row["MonthNumber"]] inside X-axis
section and in Title box,
but label on x-axis still present values defined in Categories(X) series:
row["MonthNumber"].
Where exactly can I put javascript to define values of x-axis labels
independently from values defined in Categories(X) series?

Thanks,
Vladimir
Re: expression for X-AXIS label [message #146553 is a reply to message #143520] Tue, 21 March 2006 11:00 Go to previous message
Eclipse UserFriend
What I meant is to use the scripting. Click on the chart, then click on the
script tab. There you can override the function you want and modify the X
label based on its original value. There are some scripting examples in the
org.eclipse.birt.chart.examples plugin.

Thanks,

David

"Vladimir" <vladperl@semanticprogrammer.org> wrote in message
news:dv4899$ogk$1@utils.eclipse.org...
> Hi David,
>
>> Try using scripting to change the x axis label. You can write some
>> javascript to convert the number to a month.
>
> I have tried to put javascript: months[row["MonthNumber"]] inside X-axis
> section and in Title box,
> but label on x-axis still present values defined in Categories(X) series:
> row["MonthNumber"].
> Where exactly can I put javascript to define values of x-axis labels
> independently from values defined in Categories(X) series?
>
> Thanks,
> Vladimir
>
>
Previous Topic:Modify tables with DEAPI
Next Topic:XLS emitter 2.0.1
Goto Forum:
  


Current Time: Wed Apr 16 13:40:14 EDT 2025

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

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

Back to the top