8 Replies Latest reply on Dec 7, 2007 3:18 PM by jfizer

    Removing NaN columns from a chart ColumnSeries.

    jfizer Level 1
      Is there a way to stop a bar chart from showing columns that dont contain numbers?

      public function myDataFunction(series:Series,item:Object,fieldName:String):Object {
      var value1:Number = new Number(item.Count);
      //debug1.text += String(item.Label);
      //debug1.text += String(value1);
      if(isNaN(value1)){ debug2.text += String(value1); return null; }
      if(value1>=0)
      {
      if(fieldName=="yValue")
      return(item.Count);
      else if(fieldName=="xValue")
      return(item.Label);
      }
      return null;
      }

      This will remove the columns, but it leaves empty spaces where the columns should be. I have a similar datafunction on the horizontalAxis as well.

      Any ideas? Trying to chart only the count summary rows in an advanced data grid with grouping.