Hi guys,

I'd like to report (and re-report) a couple bugs that I've found with
stacked column charts. The sample application below can be used to
reproduce all of the defects (by simply commenting/un-commenting a
couple lines as described)

1) Error #1010: undefined has no properties. at
mx.charts.chartClasses::StackedSeries/mx.charts.chartClasses:StackedSeries::buildStackedDataProvider()[C:\dev\beta1\sdk\frameworks\mx\charts\chartClasses\StackedSeries.as:347]

The source-code below "as-is" will generate this error. There are 3
chart series, and one category axis. Each series and the category axis
has its own data provider. The first two series specify only one of
the two categories in it's data provider (a single row). The third
series has both categories in it's data provider.

2) Data rendered into the wrong category.

By commenting out one of the rows in the third series data (doesn't
matter which) so that each series specifies only one of the two
categories, the chart displays, but has all of the series on the same
stack on just one of the categories. (It happens to display it on
whichever category you leave UNCOMMENTED in the third series). When
the chart type is changed from 'stacked' to 'clustered' they render in
the proper category.

3) Data will not stack without unique column names.

By changing each of the three ColumnSeries 'yField' value to
'CommissionAmt' instead of the unique column that is currently
specified, the columns will no longer stack. Changing the 'type' of
chart to 'clustered' instead of 'stacked' will render the columns AND
they will render in the proper categories.

hope this helps...
Thunder
____________________________

<?xml version="1.0" encoding="iso-8859-1"?>
<mx:Application
xmlns:mx="http://www.macromedia.com/2005/mxml";
width="100%" height="100%" >

<mx:XML id="oCatDP" format="e4x">
    <BudgetType>CHIT</BudgetType>
    <BudgetType>RESEARCH</BudgetType>
</mx:XML>
<mx:XML id="series1" format="e4x">
  <row>
    <MasterBroker>BEAR STEARNS SECURITIES CORP</MasterBroker>
    <BudgetType>RESEARCH</BudgetType>
   
<PageBEARSTEARNSSECURITIESCORPCommissionAmt>32340</PageBEARSTEARNSSECURITIESCORPCommissionAmt>
    <CommissionAmt>32340</CommissionAmt>
  </row>
</mx:XML>
<mx:XML id="series2" format="e4x">
  <row>
    <MasterBroker>UBS WARBURG SECURITIES LTD</MasterBroker>
    <BudgetType>CHIT</BudgetType>
   
<PageUBSWARBURGSECURITIESLTDCommissionAmt>42826.656</PageUBSWARBURGSECURITIESLTDCommissionAmt>
    <CommissionAmt>42826.656</CommissionAmt>
  </row>
</mx:XML>
<mx:XML id="series3" format="e4x">
  <row>
    <MasterBroker>LEHMAN BROS INC.</MasterBroker>
    <BudgetType>CHIT</BudgetType>
   
<PageLEHMANBROSINC_x2E_CommissionAmt>36210</PageLEHMANBROSINC_x2E_CommissionAmt>
    <CommissionAmt>36210</CommissionAmt>
  </row>
  <row>
    <MasterBroker>LEHMAN BROS INC.</MasterBroker>
    <BudgetType>RESEARCH</BudgetType>
   
<PageLEHMANBROSINC_x2E_CommissionAmt>92763.43</PageLEHMANBROSINC_x2E_CommissionAmt>
    <CommissionAmt>92763.43</CommissionAmt>
  </row>
</mx:XML>

<mx:XMLListCollection id="oCatCol" source="{oCatDP.BudgetType}" />
<mx:XMLListCollection id="series1Col" source="{series1.row}" />
<mx:XMLListCollection id="series2Col" source="{series2.row}" />
<mx:XMLListCollection id="series3Col" source="{series3.row}" />

<mx:ColumnChart id="mainChart" type="stacked" width="100%" height="100%">
        <mx:horizontalAxis>
            <mx:CategoryAxis dataProvider="{oCatCol}" />
        </mx:horizontalAxis>
        <mx:series>
            <mx:Array>
                <mx:ColumnSeries dataProvider="{series1Col}"
xField="BudgetType"
yField="PageBEARSTEARNSSECURITIESCORPCommissionAmt" displayName="aapl" />
                <mx:ColumnSeries dataProvider="{series2Col}"
xField="BudgetType" yField="PageUBSWARBURGSECURITIESLTDCommissionAmt"
displayName="aap2" />
                <mx:ColumnSeries dataProvider="{series3Col}"
xField="BudgetType" yField="PageLEHMANBROSINC_x2E_CommissionAmt"
displayName="aap3" />
            </mx:Array>
        </mx:series>
</mx:ColumnChart>

</mx:Application>





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to