0 Replies Latest reply on Nov 28, 2011 10:11 AM by abeall

    Flex Line Chart series interpolation problems

    abeall Level 3

      I have a LineChart with the following series:

       

      <mx:series>

              <mx:LineSeries id="myLineSeries" xField="name" yField="scaleValue" showDataEffect="{this.seriesInterpolation}"

                             itemRenderer="mx.charts.renderers.CircleItemRenderer">

                  <mx:lineStroke>

                      <mx:Stroke color="{MyColors.ORANGE}" weight="3" alpha="1" />

                  </mx:lineStroke>

              </mx:LineSeries>

              <mx:PlotSeries id="myPlotSeries" xField="xValue" yField="yValue" radius="10" stroke="{null}"

                             itemRenderer="myPlotItemRenderer">

                  <mx:fill>

                      <mx:SolidColor color="{MyColors.BLUE}" />

                  </mx:fill>

              </mx:PlotSeries>

          </mx:series>

       

      My interpolation effect:

       

      <mx:SeriesInterpolate id="seriesInterpolation" duration="500"  />

       

      The problem is that when I set myPlotSeries.dataProvider it completely redraws the line series, as if from null values to the current values -- very undesired, it shouldn't be changing the line series at all. If I set myLineSeries.dataProvider I get the expected inerpolation effect between the old line series values and the new line series values.

       

      Any idea why the line series is redrawing from blank values when I set the plot series?