Issue 85637

Summary: Rotation to Bar chart should be also rotate the Axis Title
Product: General Reporter: kla <thomas.klarhoefer>
Component: chartAssignee: kla <thomas.klarhoefer>
Status: CLOSED FIXED QA Contact: issues@graphics <issues>
Severity: Trivial    
Priority: P3 CC: IngridvdM, issues, weizhao
Version: 3.3.0 or older (OOo)   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Issue Depends on:    
Issue Blocks: 72764    
Attachments:
Description Flags
Testdoc
none
patch_080710
none
new example with automatic positions none

Description kla 2008-01-28 12:34:44 UTC
Open testdoc.
Select chart and switch Type to Bar.
Only the Chart Type are switched, not the Axis Title.
Comment 1 kla 2008-01-28 12:44:40 UTC
Created attachment 51203 [details]
Testdoc
Comment 2 weiz 2008-07-10 04:16:19 UTC
&iha: the property "AutomaticPosition" for chart title is finished. Please let 
me know your suggestions, it's useful for me to work on the further work(the 
same property for legend and plot area). Thank you very much!
Comment 3 weiz 2008-07-10 04:17:01 UTC
Created attachment 55038 [details]
patch_080710
Comment 4 IngridvdM 2008-07-10 20:56:01 UTC
@weiz, thanks for the patch! I only had a quick look so far but it looks good. :-)
The only thing I stumbled over is the case when the property automatic-position
is set to false. In the patch this is not implemented. Did you try to use
TitleWrapper::getPosition() to set an explicit position in that case?
Adding the same property for legend and plot area would be a part of issue 75194.
Comment 5 IngridvdM 2008-07-11 07:49:47 UTC
One thing more. For the file format it is specified that the absence of
'auto-position' is equal to auto-position=false. So the default in the file
format is false. We can achieve the correct behavior easily when choosing the
same default for the API. Please introduce an additional method
WrappedAutomaticPositionProperty::getPropertyDefault. It should return false.
Comment 6 weiz 2008-07-14 04:38:58 UTC
@iha: the improvement of this issue is finished at issue 75194.
Comment 7 IngridvdM 2008-07-17 08:54:42 UTC
With the implementation of issue 75194 this is fixed as follows:
When you now create a chart with axes-titles the positions of the titles are not
fixed but automatic as long as the user does not move them explicitly. So you
can create a column chart with titles, save, reload and swap to bar chart -> the
titles will move to the positions they should have for a default bar chart.
As the attached file was written with an older version it can not be
distinguished whether the user has explicitly positioned the title or whether it
was automatically placed by the application. So old files can not be corrected,
but this should be a relatively rare scenario and users can use the auto-layout
button to bring back good defaults.
Comment 8 IngridvdM 2008-07-17 08:56:48 UTC
Created attachment 55166 [details]
new example with automatic positions
Comment 9 IngridvdM 2008-09-10 16:37:40 UTC
@KLA, please verify in CWS chart30.
Comment 10 kla 2008-09-16 09:14:13 UTC
For new docs its work fine, ok in CWS chart30 -> verified
Comment 11 kla 2008-11-04 13:08:58 UTC
Seen ok in current master -> closed