Hi Thunder. I believe item #3 has been addressed in the next public release. #1 and #2 we'll look into.
Thanks for being patient ;) Ely. -----Original Message----- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of thunderstumpgesatwork Sent: Monday, March 20, 2006 10:05 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Bugs with stacked charts 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:StackedSeri es::buildStackedDataProvider()[C:\dev\beta1\sdk\frameworks\mx\charts\cha rtClasses\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</PageBEARSTEARNSSECURI TIESCORPCommissionAmt> <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</PageUBSWARBURGSECUR ITIESLTDCommissionAmt> <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_Commis sionAmt> <CommissionAmt>36210</CommissionAmt> </row> <row> <MasterBroker>LEHMAN BROS INC.</MasterBroker> <BudgetType>RESEARCH</BudgetType> <PageLEHMANBROSINC_x2E_CommissionAmt>92763.43</PageLEHMANBROSINC_x2E_Com missionAmt> <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 -- 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/