0 Replies Latest reply on Oct 10, 2011 12:39 AM by hidarikani

    LineChart performance and collectionChange event

    hidarikani Level 2

      I have a LineChart that binds to an ArrayCollection.

      The ArrayCollection contains items that implement the IEditableChartItem interface.

      It takes about 1.5 secods for the chart to update after I change a property of an item in the ArrayCollection.

      1.5 s is slow for 2 series 40 items each right? Maybe there is some way do redraw only the Item that has changed, not the whole chart?

       

      Here's the code from the data provider item class:

       

      public function set value(value:Number):void {

           dispatchEvent(PropertyChangeEvent.createUpdateEvent(

                this,

                'value',

                _value,

                value

           ));

           _value = value;

      }