3 Replies Latest reply on Feb 19, 2007 1:33 AM by Oddsy

    Hiding a LineSeries

    AlanParish Level 1
      I'm dynamically adding multiple LineSeries to a LineChart control. What is the best way of hiding one of the LineSeries of this chart so that I can reshow it later, while being able to use the SeriesSlide transition?

      I have added a style as follows which references the SeriesSlide control with id 'slideRight'.

      <mx:Style>
      LineSeries {
      showDataEffect:slideRight;
      hideDataEffect:slideRight;
      }
      </mx:Style>

      <mx:SeriesSlide id="slideRight" duration="1000" direction="right" minimumElementDuration="2000" elementOffset="5" />

      Just changing the visible property of a LineSeries removes the series from the chart but the slide effect doesn't happen. Any ideas?

      Many Thanks