2 Replies Latest reply on Feb 23, 2008 2:12 AM by flexperson

    Simple AreaChart crashes if filterData is false

    flexperson
      An extremely simplified example; setting filterData="false" causes the crash; if it is not an AreaChart it works fine (LineChart and ColumnChart works fine)

      chart.mxml:
      <?xml version="1.0"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml">
      <mx:AreaChart id="myChart">
      <mx:series>
      <mx:AreaSeries yField="value" filterData="false" />
      </mx:series>
      <mx:dataProvider>
      <mx:ArrayCollection>
      <mx:Object value="2000" />
      <mx:Object value="1000" />
      <mx:Object value="1500" />
      </mx:ArrayCollection>
      </mx:dataProvider>
      </mx:AreaChart>
      </mx:Application>

      Error Message / Crash Report when running is as follows:
      TypeError: Error #1009: Cannot access a property or method of a null object reference.
      at mx.charts.series::AreaSeries/updateTransform()[C:\Work\flex\dmv_automation\projects\datav isualisation\src\mx\charts\series\AreaSeries.as:1616]
      at mx.charts.chartClasses::Series/validateTransform()[C:\Work\flex\dmv_automation\projects\d atavisualisation\src\mx\charts\chartClasses\Series.as:1486]
      at mx.charts.chartClasses::Series/updateDisplayList()[C:\Work\flex\dmv_automation\projects\d atavisualisation\src\mx\charts\chartClasses\Series.as:828]
      at mx.charts.series::AreaSeries/updateDisplayList()[C:\Work\flex\dmv_automation\projects\dat avisualisation\src\mx\charts\series\AreaSeries.as:858]
      at mx.core::UIComponent/validateDisplayList()[E:\dev\flex_3_beta3\sdk\frameworks\projects\fr amework\src\mx\core\UIComponent.as:6204]
      at mx.managers::LayoutManager/validateDisplayList()[E:\dev\flex_3_beta3\sdk\frameworks\proje cts\framework\src\mx\managers\LayoutManager.as:600]
      at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\flex_3_beta3\sdk\frameworks\pro jects\framework\src\mx\managers\LayoutManager.as:655]
      at Function/ http://adobe.com/AS3/2006/builtin::apply()
      at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\flex_3_beta3\sdk\frameworks\projects\f ramework\src\mx\core\UIComponent.as:8450]
      at mx.core::UIComponent/callLaterDispatcher()[E:\dev\flex_3_beta3\sdk\frameworks\projects\fr amework\src\mx\core\UIComponent.as:8393]