2 Replies Latest reply on Apr 15, 2011 3:40 PM by new2oop

    Series name is missing from dynamically created Line Chart Series

    new2oop

      I'm dynamically creating series for a line chart. It works well but mouseover on the data points shows only the x and y values, but not the series name, the legend shows a series of colored boxes to match the lines but no  labels display for each colored box. Here's my code:

       

      linechart2.series = [];

      for(a = 0; a < allSettingsArray.length; a++) {

       

      // CREATE MULTIPLE VERTICAL AXIS

      var verticalAxis1:LinearAxis = new LinearAxis();

      var verticalAxisRenderer1:AxisRenderer = new AxisRenderer();

      verticalAxisRenderer1.axis = verticalAxis1;

       

       

      var series:LineSeries = new LineSeries();

      series.verticalAxis = verticalAxis1;

      series.yField = allSettingsArray[a];

      linechart2.series.push(series);

      }

       

       

      Each datapoint is defined in a loop as:

       

      temp["gameNum"] = String(a);

      str = String(attrVal[0]);

      temp[str] = attrVal[1];

       

      Then added into the ArrayCollection:

       

      resultArrayColl.addItem(temp);

      Any suggestions, what am I missing here?