Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 177744

Summary: No way to align axes of multiple charts
Product: z_Archived Reporter: James Moody <James_Moody>
Component: BIRTAssignee: Yi Wang <yi.wang>
Status: VERIFIED FIXED QA Contact: Maggie Shen <lshen>
Severity: enhancement    
Priority: P3 CC: bluesoldier, wenfeng.fwd
Version: 2.2.0Keywords: plan
Target Milestone: 2.5.0 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard: Obsolete
Attachments:
Description Flags
Screenshot demonstrating problem none

Description James Moody CLA 2007-03-16 09:11:02 EDT
In my report I have axis chart A followed underneath by axis chart B. A general statement of the problem is that I would like the X axis of chart A to align with the X axis of chart B. Currently this is not possible, because even if I make the charts the same size, differences in y axis labels and potentially differences in legend text (if I have the legend on the right) mean that the plot areas end up being different sizes.

I'd like a layout setting that would let multiple charts, laid out vertically, to have X axes that line up. (I suppose, for completeness, if I had multiple charts, laid out horizontally, I'd also like to be able to have the Y axes line up).

Please see the attachment for an example of the problem today.
Comment 1 James Moody CLA 2007-03-16 09:11:47 EDT
Created attachment 61083 [details]
Screenshot demonstrating problem
Comment 2 Wenfeng Li CLA 2008-05-22 21:43:13 EDT
How about letting chart designer to specify a fix width for the Y axis data point labels region?  Then either wrap the labels, or clip them to fit into the fix width?  


Also allow fix height for the X axis labels region?
Comment 3 Yulin Wang CLA 2008-07-14 05:32:57 EDT
*** Bug 240464 has been marked as a duplicate of this bug. ***
Comment 4 Yi Wang CLA 2009-02-20 00:41:55 EST
1. Added a new double property named LabelThickness to the model of Axis, which gives the user a way to indicate a fixed thickness of axis label. Hereby label thickness means width for vertical axis and height for horizontal axis. 

2. Added the UI to modify this property in axis format page.

Now the user has the change to align axis of multiple charts, if they have the same fixed labelThickness of axis and all related settings are the same, especially for the axis title. The user should also be responsible for selecting a reasonable value for LabelThickness, a too great or too small LabelThickness can cause the axis label to be dropped all overlapped with axis title.

So this is a simple and limited solution for this use case, if the user use it properly the requirement can be fulfilled.  Anyway this is not a very common use case, in general we will not exchange informations between separate charts.  There is also a similar use case in bugzilla #170985, maybe it's also interesting for you.
Comment 5 Maggie Shen CLA 2009-03-09 04:18:32 EDT
Verified on build 2.5.0 v20090309-0630.User can set the Label Span to control the space for the axis labels. It's a workaround to align the axis of two charts when other settings like the axis tile are the same.