RE: [flexcoders] ColumnChart problem
If either of you can send us a simple reproducable case (i.e., one file, doesn't require a server running, etc) it would be really helpful tracking this down. Thanks, Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brendan MeutznerSent: Monday, July 10, 2006 8:45 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] ColumnChart problem I actually came across this yesterday as well... when i removed the effect, it ran fine...i just switched from stacked to a different type (overlaid i think) and the interpolate effect didn't cause issues anymore... Brendan On 7/10/06, pasflex [EMAIL PROTECTED] wrote: I have a stacked column chart with the showDataEffect set to a SeriesInterpolate effect. The chart begins to render, the axes get drawn, and the application freezes with this error:TypeError: Error #1009: Cannot access a property or method of a null object reference.at mx.charts.chartClasses::NumericAxis/filterCache()[C:\dev\GMC\sdk\frameworks\mx\charts\chartClasses\NumericAxis.as:577]at mx.charts.series::ColumnSeries/mx.charts.series:ColumnSeries::updateFilter()[C:\dev\GMC\sdk\frameworks\mx\charts\series\ColumnSeries.as:606]at mx.charts.chartClasses::Series/mx.charts.chartClasses:Series::validateTransform()[C:\dev\GMC\sdk\frameworks\mx\charts\chartClasses\Series.as:943]at mx.charts.chartClasses::Series/getRenderDataForTransition()[C:\dev\GMC\sdk\frameworks\mx\charts\chartClasses\Series.as:994]at mx.charts.effects.effectClasses::SeriesInterpolateInstance/play()[C:\dev\GMC\sdk\frameworks\mx\charts\effects\effectClasses\SeriesInterpolateInstance.as:91]at mx.effects::EffectInstance/startEffect()[C:\dev\GMC\sdk\frameworks\mx\effects\EffectInstance.as:438]at mx.effects.effectClasses::ParallelInstance/play()[C:\dev\GMC\sdk\frameworks\mx\effects\effectClasses\ParallelInstance.as:196]at mx.charts.chartClasses::ChartBase/mx.charts.chartClasses:ChartBase::advanceEffectState()[C:\dev\GMC\sdk\frameworks\mx\charts\chartClasses\ChartBase.as:1562]at mx.charts.chartClasses::ChartBase/mx.charts.chartClasses:ChartBase::updateDisplayList()[C:\dev\GMC\sdk\frameworks\mx\charts\chartClasses\ChartBase.as:1268]at mx.charts.chartClasses::CartesianChart/mx.charts.chartClasses:CartesianChart::updateDisplayList()[C:\dev\GMC\sdk\frameworks\mx\charts\chartClasses\CartesianChart.as:961]at mx.core::UIComponent/validateDisplayList()[C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:5672]at mx.managers::LayoutManager/mx.managers:LayoutManager::validateDisplayList()[C:\dev\GMC\sdk\frameworks\mx\managers\LayoutManager.as:594]at mx.managers::LayoutManager/mx.managers:LayoutManager::doPhasedInstantiation()[C:\dev\GMC\sdk\frameworks\mx\managers\LayoutManager.as:664]at Function/http://adobe.com/AS3/2006/builtin::apply()at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2()[C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:7789]at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher()[C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:7732]Any ideas? __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] ColumnChart problem
Oops, never mind, I guess I already investigated this one ;) Yes, Jason's right, this is a known issue with a known fix. Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Pan TroglodytesSent: Tuesday, July 11, 2006 1:43 AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] ColumnChart problem I posted about this a while back. Ely confirmed it as a bug and says he has a fix if you have the source code:http://www.mail-archive.com/flexcoders@yahoogroups.com/msg32135.html On 7/10/06, pasflex [EMAIL PROTECTED] wrote: I have a stacked column chart with the showDataEffect set to a SeriesInterpolate effect. The chart begins to render, the axes get drawn, and the application freezes with this error:TypeError: Error #1009: Cannot access a property or method of a null object reference.at mx.charts.chartClasses::NumericAxis/filterCache()[C:\dev\GMC\sdk\frameworks\mx\charts\chartClasses\NumericAxis.as:577]at mx.charts.series::ColumnSeries/mx.charts.series:ColumnSeries::updateFilter()[C:\dev\GMC\sdk\frameworks\mx\charts\series\ColumnSeries.as:606]at mx.charts.chartClasses::Series/mx.charts.chartClasses:Series::validateTransform()[C:\dev\GMC\sdk\frameworks\mx\charts\chartClasses\Series.as:943]at mx.charts.chartClasses::Series/getRenderDataForTransition()[C:\dev\GMC\sdk\frameworks\mx\charts\chartClasses\Series.as:994]at mx.charts.effects.effectClasses::SeriesInterpolateInstance/play()[C:\dev\GMC\sdk\frameworks\mx\charts\effects\effectClasses\SeriesInterpolateInstance.as:91]at mx.effects::EffectInstance/startEffect()[C:\dev\GMC\sdk\frameworks\mx\effects\EffectInstance.as:438]at mx.effects.effectClasses::ParallelInstance/play()[C:\dev\GMC\sdk\frameworks\mx\effects\effectClasses\ParallelInstance.as:196]at mx.charts.chartClasses::ChartBase/mx.charts.chartClasses:ChartBase::advanceEffectState()[C:\dev\GMC\sdk\frameworks\mx\charts\chartClasses\ChartBase.as:1562]at mx.charts.chartClasses::ChartBase/mx.charts.chartClasses:ChartBase::updateDisplayList()[C:\dev\GMC\sdk\frameworks\mx\charts\chartClasses\ChartBase.as:1268]at mx.charts.chartClasses::CartesianChart/mx.charts.chartClasses:CartesianChart::updateDisplayList()[C:\dev\GMC\sdk\frameworks\mx\charts\chartClasses\CartesianChart.as:961]at mx.core::UIComponent/validateDisplayList()[C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:5672]at mx.managers::LayoutManager/mx.managers:LayoutManager::validateDisplayList()[C:\dev\GMC\sdk\frameworks\mx\managers\LayoutManager.as:594]at mx.managers::LayoutManager/mx.managers:LayoutManager::doPhasedInstantiation()[C:\dev\GMC\sdk\frameworks\mx\managers\LayoutManager.as:664]at Function/http://adobe.com/AS3/2006/builtin::apply()at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2()[C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:7789]at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher()[C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:7732]Any ideas?-- Jason __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] ColumnChart problem
I have a stacked column chart with the showDataEffect set to a SeriesInterpolate effect. The chart begins to render, the axes get drawn, and the application freezes with this error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.charts.chartClasses::NumericAxis/filterCache() [C:\dev\GMC\sdk\frameworks\mx\charts\chartClasses\NumericAxis.as:577] at mx.charts.series::ColumnSeries/mx.charts.series:ColumnSeries::updateF ilter() [C:\dev\GMC\sdk\frameworks\mx\charts\series\ColumnSeries.as:606] at mx.charts.chartClasses::Series/mx.charts.chartClasses:Series::validat eTransform() [C:\dev\GMC\sdk\frameworks\mx\charts\chartClasses\Series.as:943] at mx.charts.chartClasses::Series/getRenderDataForTransition ()[C:\dev\GMC\sdk\frameworks\mx\charts\chartClasses\Series.as:994] at mx.charts.effects.effectClasses::SeriesInterpolateInstance/play() [C:\dev\GMC\sdk\frameworks\mx\charts\effects\effectClasses\SeriesInte rpolateInstance.as:91] at mx.effects::EffectInstance/startEffect() [C:\dev\GMC\sdk\frameworks\mx\effects\EffectInstance.as:438] at mx.effects.effectClasses::ParallelInstance/play() [C:\dev\GMC\sdk\frameworks\mx\effects\effectClasses\ParallelInstance. as:196] at mx.charts.chartClasses::ChartBase/mx.charts.chartClasses:ChartBase::a dvanceEffectState() [C:\dev\GMC\sdk\frameworks\mx\charts\chartClasses\ChartBase.as:1562] at mx.charts.chartClasses::ChartBase/mx.charts.chartClasses:ChartBase::u pdateDisplayList() [C:\dev\GMC\sdk\frameworks\mx\charts\chartClasses\ChartBase.as:1268] at mx.charts.chartClasses::CartesianChart/mx.charts.chartClasses:Cartesi anChart::updateDisplayList() [C:\dev\GMC\sdk\frameworks\mx\charts\chartClasses\CartesianChart.as:9 61] at mx.core::UIComponent/validateDisplayList() [C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:5672] at mx.managers::LayoutManager/mx.managers:LayoutManager::validateDisplay List()[C:\dev\GMC\sdk\frameworks\mx\managers\LayoutManager.as:594] at mx.managers::LayoutManager/mx.managers:LayoutManager::doPhasedInstant iation()[C:\dev\GMC\sdk\frameworks\mx\managers\LayoutManager.as:664] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2() [C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:7789] at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher() [C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:7732] Any ideas? Yahoo! Groups Sponsor ~-- Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM ~- -- 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/
Re: [flexcoders] ColumnChart problem
I posted about this a while back. Ely confirmed it as a bug and says he has a fix if you have the source code:http://www.mail-archive.com/flexcoders@yahoogroups.com/msg32135.html On 7/10/06, pasflex [EMAIL PROTECTED] wrote: I have a stacked column chart with the showDataEffect set to a SeriesInterpolate effect. The chart begins to render, the axes get drawn, and the application freezes with this error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.charts.chartClasses::NumericAxis/filterCache() [C:\dev\GMC\sdk\frameworks\mx\charts\chartClasses\NumericAxis.as:577] at mx.charts.series::ColumnSeries/mx.charts.series:ColumnSeries::updateF ilter() [C:\dev\GMC\sdk\frameworks\mx\charts\series\ColumnSeries.as:606] at mx.charts.chartClasses::Series/mx.charts.chartClasses:Series::validat eTransform() [C:\dev\GMC\sdk\frameworks\mx\charts\chartClasses\Series.as:943] at mx.charts.chartClasses::Series/getRenderDataForTransition ()[C:\dev\GMC\sdk\frameworks\mx\charts\chartClasses\Series.as:994] at mx.charts.effects.effectClasses::SeriesInterpolateInstance/play() [C:\dev\GMC\sdk\frameworks\mx\charts\effects\effectClasses\SeriesInte rpolateInstance.as:91] at mx.effects::EffectInstance/startEffect() [C:\dev\GMC\sdk\frameworks\mx\effects\EffectInstance.as:438] at mx.effects.effectClasses::ParallelInstance/play() [C:\dev\GMC\sdk\frameworks\mx\effects\effectClasses\ParallelInstance. as:196] at mx.charts.chartClasses::ChartBase/mx.charts.chartClasses:ChartBase::a dvanceEffectState() [C:\dev\GMC\sdk\frameworks\mx\charts\chartClasses\ChartBase.as:1562] at mx.charts.chartClasses::ChartBase/mx.charts.chartClasses:ChartBase::u pdateDisplayList() [C:\dev\GMC\sdk\frameworks\mx\charts\chartClasses\ChartBase.as:1268] at mx.charts.chartClasses::CartesianChart/mx.charts.chartClasses:Cartesi anChart::updateDisplayList() [C:\dev\GMC\sdk\frameworks\mx\charts\chartClasses\CartesianChart.as:9 61] at mx.core::UIComponent/validateDisplayList() [C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:5672] at mx.managers::LayoutManager/mx.managers:LayoutManager::validateDisplay List()[C:\dev\GMC\sdk\frameworks\mx\managers\LayoutManager.as:594] at mx.managers::LayoutManager/mx.managers:LayoutManager::doPhasedInstant iation()[C:\dev\GMC\sdk\frameworks\mx\managers\LayoutManager.as:664] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2() [C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:7789] at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher() [C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:7732] Any ideas? -- Jason __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] ColumnChart problem x2.. MOUSE_OVER_DATA event seems wonky (2.0b1).
Hi again. Eli I hope you're reading this! =) I'm getting really sporatic responses from a listener to the ChartMouseEvent.MOUSE_OVER_DATA Note it wasn't this way in the alpha. Only significant differences on my part is the use of XMLListCollecitons as data providers. see the sample app below. Thanks, Thunder ___ ?xml version=1.0 encoding=utf-8? mx:Application width=100% height=100% xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns:root=* mx:ColumnChart id=mainChart width=403 height=232 / mx:Button label=Fetch click=populateStaticChart()/ mx:Script ![CDATA[ import mx.collections.ArrayCollection; import mx.collections.XMLListCollection; import mx.charts.series.ColumnSeries; import mx.charts.CategoryAxis; import mx.charts.events.ChartMouseEvent; public function populateStaticChart():void { var oData:XMLList = null; var oXML:XML = data row Year2005/Year PageConvergenceMSMUnits6.654/PageConvergenceMSMUnits PageMultimediaMSMUnits4.3/PageMultimediaMSMUnits PageEnhancedMSMUnits4.972/PageEnhancedMSMUnits PageValueMSMUnits6.117/PageValueMSMUnits /row /data; oData = oXML.row; var oXMLCol:XMLListCollection = new XMLListCollection(oData); var aYears:Array = [ 2005 ]; var aTypes:Array = [ Enhanced, Convergence, Multimedia, Value ]; // mainChart.type = stacked; mainChart.addEventListener(ChartMouseEvent.MOUSE_OVER_DATA, hoverChartData); // add the category axis to the chart var hAxis:CategoryAxis = new CategoryAxis(); // this works! Thanks! hAxis.categoryField= ; hAxis.dataProvider = aYears; hAxis.name= Year ; mainChart.horizontalAxis= hAxis; // add the series to the chart var sa:Array = mainChart.series for each (var sName:String in aTypes) { var cSeries:ColumnSeries = new ColumnSeries(); cSeries.yField = Page + sName + MSMUnits ; cSeries.name = sName; cSeries.dataProvider = oXMLCol; sa.push( cSeries ); } mainChart.series = sa; } public function hoverChartData(event:ChartMouseEvent):void { var oItem:Object = null; oItem = event.hitData.item; log.text += \n + event.hitData.element.name; } ]] /mx:Script /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/