1 Reply Latest reply on Dec 4, 2009 1:35 PM by rrodseth

    column chart error

    Varun Bajaj (PHP) Level 1

      Hi All

       

       

       

      In my column chart I am having following error due to my axisRenderer but I

      am unable to find out the root cause of error.

       

       

       

       

       

      Error

       

      TypeError: Error #1009: Cannot access a property or method of a null object

      reference.

       

                  at

      mx.charts::AxisRenderer/calcStaggeredSpacing()[C:\Work\flex\dmv_automation\p

      rojects\datavisualisation\src\mx\charts\AxisRenderer.as:2195]

       

                  at

      mx.charts::AxisRenderer/calcRotationAndSpacing()[C:\Work\flex\dmv_automation

      \projects\datavisualisation\src\mx\charts\AxisRenderer.as:1586]

       

                  at

      mx.charts::AxisRenderer/adjustGutters()[C:\Work\flex\dmv_automation\projects

      \datavisualisation\src\mx\charts\AxisRenderer.as:1326]

       

                  at mx.charts::AxisRenderer/set

      gutters()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\char

      ts\AxisRenderer.as:798]

       

                  at

       

      mx.charts.chartClasses::CartesianChart/updateAxisLayout()[C:\Work\flex\dmv_a

      utomation\projects\datavisualisation\src\mx\charts\chartClasses\CartesianCha

      rt.as

       

      :2028]

       

                  at

       

      mx.charts.chartClasses::CartesianChart/updateDisplayList()[C:\Work\flex\dmv_

      automation\projects\datavisualisation\src\mx\charts\chartClasses\CartesianCh

      art.a

       

      s:1355]

       

                  at mx.core::UIComponent/validateDisplayList()

       

                  at mx.managers::LayoutManager/validateDisplayList()

       

                  at mx.managers::LayoutManager/doPhasedInstantiation()

       

                  at mx.managers::LayoutManager/validateNow()

       

                  at mx.effects.effectClasses::TweenEffectInstance/onTweenEnd()

       

                  at mx.effects.effectClasses::ResizeInstance/onTweenEnd()

       

                  at mx.effects::Tween/endTween()

       

                  at

      mx.effects::Tween/http://www.adobe.com/2006/flex/mx/internal::doInterval()

       

                  at mx.effects::Tween$/timerHandler()

       

                  at flash.utils::Timer/_timerDispatch()

       

                  at flash.utils::Timer/tick()

       

       

       

       

       

       

       

       

       

      my Axis renderer

       

       

       

      <mx:horizontalAxis>

       

                        <mx:CategoryAxis id="myAxis" 

       

                                                 categoryField="X"   />

       

                  </mx:horizontalAxis>

       

                   <mx:horizontalAxisRenderers>

       

                        <mx:AxisRenderer

      labelRotation="{Application.application.xAxisLabelRotator.value}"

       

                                                 axis=""/>

       

                   </mx:horizontalAxisRenderers>

       

       

       

       

       

      Any help is highly appreciable.

       

       

       

      With thanks and warm regards,

       

       

       

      Varun Bajaj