Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Does birt support nested axis label
Does birt support nested axis label [message #898059] Wed, 25 July 2012 13:23 Go to next message
DONG YAO is currently offline DONG YAO
Messages: 20
Registered: May 2012
Junior Member
Does birt support nested axis label? For example, the x axis label is January, February, March... and under that is Q1 which covers those 3 months, then Q2 covers Apr, May, Jun...

How to do that?

Thanks a lot!
Re: Does birt support nested axis label [message #898061 is a reply to message #898059] Wed, 25 July 2012 13:28 Go to previous messageGo to next message
DONG YAO is currently offline DONG YAO
Messages: 20
Registered: May 2012
Junior Member
like this (html does not align very well...)

|JAN|FEB|MAR|APR|MAY|JUN|
|-----Q1-----|------Q2----|

[Updated on: Wed, 25 July 2012 13:30]

Report message to a moderator

Re: Does birt support nested axis label [message #898614 is a reply to message #898061] Thu, 26 July 2012 17:32 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Not natively but you can do similar things with script. Look at the
attached two examples. Specifically the adjustaxis example. If you
look at the x-value expression data is put in that is trimmed in script
and a new line is added.

Jason


On 7/25/2012 1:28 PM, DONG YAO wrote:
> like this
> |JAN|FEB|MAR|APR|MAY|JUN|
> | Q1 | Q2 |
Re: Does birt support nested axis label [message #899450 is a reply to message #898614] Tue, 31 July 2012 17:25 Go to previous messageGo to next message
DONG YAO is currently offline DONG YAO
Messages: 20
Registered: May 2012
Junior Member
Thanks, Jason

But both solution does not work for me.
ChartsByQuarter is not really nested x label. Series Grouping is used here. I know it provides the same info of the nested x label. I also suggested that to our customer. But our customer does want the nested label.

the second example looks like nested x label. But it is using space to control the second line of the label. It is very hard to predict how many space should be there when the number of the items displayed on x axis is dynamic. For the same chart, it could be 2 months or it could be 36 months, the date ranged is determined by user at runtime.
Re: Does birt support nested axis label [message #899451 is a reply to message #899450] Tue, 31 July 2012 17:38 Go to previous messageGo to next message
DONG YAO is currently offline DONG YAO
Messages: 20
Registered: May 2012
Junior Member
Also, the first line in x label, we need display the text vertically (degree 90). I tried that on the second example, no label was shown on x axis.
Re: Does birt support nested axis label [message #899615 is a reply to message #899451] Wed, 01 August 2012 11:01 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Currently BIRT does not have nested labeling. In the example I posted
on space control you can know using the afterDataSet event how many data
points you will have. This will make the script a bit complex so I know
it is not ideal. The only other option I can think of is to implement a
chart type extension that provides this functionality. Can you log a
bugzilla request for this enhancement?

Jason

On 7/31/2012 5:38 PM, DONG YAO wrote:
> Also, the first line in x label, we need display the text vertically
> (degree 90). I tried that on the second example, no label was shown on x
> axis.
Re: Does birt support nested axis label [message #899930 is a reply to message #899615] Thu, 02 August 2012 19:50 Go to previous messageGo to next message
DONG YAO is currently offline DONG YAO
Messages: 20
Registered: May 2012
Junior Member
Here you are!

https://bugs.eclipse.org/bugs/show_bug.cgi?id=386530
Re: Does birt support nested axis label [message #900076 is a reply to message #899930] Fri, 03 August 2012 15:55 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Thanks for logging the bug.

Jason

On 8/2/2012 7:50 PM, DONG YAO wrote:
> Here you are!
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=386530
Previous Topic:Reg dynamic parameter
Next Topic:NullPointerException Platform.createFactoryObject
Goto Forum:
  


Current Time: Wed Jul 30 15:28:16 EDT 2014

Powered by FUDForum. Page generated in 0.01807 seconds