public static List seriesNameListFromDataArray(Object[][] data){
  int seriesCount=data.length;
  List seriesNameList=new java.util.ArrayList(seriesCount);
  for (int i=0; i < seriesCount; i++) {
    seriesNameList.add("Series " + (i + 1));
  }
  return seriesNameList;
}

public static List seriesNameListFromDataArray ( Object [ ] [ ] data ) { int seriesCount = data . length ; List seriesNameList = new java . util . ArrayList ( seriesCount ) ; for ( int i = 0 ; i < seriesCount ; i ++ ) { seriesNameList . add ( "Series " + ( i + 1 ) ) ; } return seriesNameList ; }
utility method for automatically generating series names .
