0 Replies Latest reply on Jul 24, 2008 4:04 AM by vàppý

    Flex Charting -  Adding & removing series dynamically Help!!!

      My App displays a chart with multiple series depending upon the
      checkboxs that are checked. so i require to add and remove the series
      of data onto the chart.

      Here's the function I tried use to add series to the chart... but the
      series doesn't get added to the chart.. Is there something wrong with
      the code.

      public function add_series():void
      var ls:LineSeries;
      ls = new LineSeries();
      ls.xField = "date";
      ls.yField = "value";
      ls.dataProvider = mainData;


      thanks in advance ....