You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "lowell farrell (JIRA)" <ji...@apache.org> on 2013/08/30 19:56:51 UTC

[jira] [Commented] (FLEX-31849) ColumnSet with type="overlaid" uses incorrect column width (uses same width as "clustered", should be same as "stacked")

    [ https://issues.apache.org/jira/browse/FLEX-31849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13754954#comment-13754954 ] 

lowell farrell commented on FLEX-31849:
---------------------------------------

If this issue has been closed does that mean there is a fix for this bug?  I am running into this bug on sdk 4.5.0
                
> ColumnSet with type="overlaid" uses incorrect column width (uses same width as "clustered", should be same as "stacked")
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: FLEX-31849
>                 URL: https://issues.apache.org/jira/browse/FLEX-31849
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Charts:Data Graphics
>    Affects Versions: Adobe Flex SDK Previous
>         Environment: Affected OS(s): Windows
> Affected OS(s): Windows XP
> Language Found: English
>            Reporter: Adobe JIRA
>            Assignee: Adobe JIRA
>            Priority: Minor
>             Fix For: Adobe Flex SDK Previous
>
>
> Steps to reproduce: (see example application below)
> 1. Create a ColumnChart with type="clustered".
> 2. Add a ColumnSet with type="overlaid".
> 3. Add a some ColumnSeries to the ColumnSet, and some data.
>  
> Actual Results:
> The columns end up having a width that is too narrow.  Specifically, the colum widths end up the same as if the columns were all being rendered side-by-side (eg "clustered").
>  
> Expected Results:
> The columns should be wider.  If you set the ColumnSet type to "stacked", then the correct "wider" width is used.  In "overlaid" mode, the ColumnSet should use the same column width as it currently uses in "stacked" mode.  This would make it consistent with the behaviour that occurs in ColumnCharts with no ColumnSet grouping.
>  
> Workaround (if any): none. 
> Here's a quick test application that demonstrates the problem:
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
>   <mx:ComboBox id="columnSetType" selectedIndex="1">
>     <mx:dataProvider>
>       <mx:Array>
>         <mx:String>clustered</mx:String>
>         <mx:String>overlaid</mx:String>
>         <mx:String>stacked</mx:String>
>       </mx:Array>
>     </mx:dataProvider>
>   </mx:ComboBox>
>   <mx:ColumnChart type="clustered" columnWidthRatio="1" showDataTips="true">
>     <mx:series>
>       <mx:ColumnSet type="{columnSetType.selectedItem}" columnWidthRatio="1">
>         <mx:series>
>           <mx:ColumnSeries xField="x" yField="y1" columnWidthRatio="1"/>
>           <mx:ColumnSeries xField="x" yField="y2" columnWidthRatio="1"/>
>           <mx:ColumnSeries xField="x" yField="y3" columnWidthRatio="1"/>
>         </mx:series>
>       </mx:ColumnSet>
>     </mx:series>
>     <mx:dataProvider>
>       <mx:Array>
>         <mx:Object x="1" y1="9" y2="8" y3="7"/>
>         <mx:Object x="2" y1="6" y2="5" y3="4"/>
>         <mx:Object x="3" y1="3" y2="2" y3="1"/>
>       </mx:Array>
>     </mx:dataProvider>
>     <mx:horizontalAxis>
>       <mx:LinearAxis interval="1" minimum="0" maximum="4"/>
>     </mx:horizontalAxis>
>     <mx:verticalAxis>
>       <mx:LinearAxis interval="1" minimum="0" maximum="10"/>
>     </mx:verticalAxis>
>   </mx:ColumnChart>
>   
> </mx:Application>
> As you switch through the ColumnSet types, the columns should always be hard pressed against each other (since all columnWidthRatios are set to "1".  But clearly they are not with the type is set to "overlaid".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira