Package org.eclipse.birt.chart.model.data

Examples of org.eclipse.birt.chart.model.data.SeriesDefinition


  // X-Series
  Series seCategory = SeriesImpl.create();
  final double[] xvalues = results.getColumn(0);
  seCategory.setDataSet(NumberDataSetImpl.create(xvalues));
  SeriesDefinition sdX = SeriesDefinitionImpl.create();
  xAxisPrimary.getSeriesDefinitions().add(sdX);
  sdX.getSeries().add(seCategory);
 
  SeriesDefinition sdY = SeriesDefinitionImpl.create();
  sdY.getSeriesPalette().shift(-1);
  yAxisPrimary.getSeriesDefinitions().add(sdY);

  String []titles = results.getTitles();
  for(int i=1; i<results.numColumns(); i++)
    sdY.getSeries().add(createSeries(results.getColumn(i),titles[i-1]));
 
  return cwa3DLine;
}
View Full Code Here

TOP

Related Classes of org.eclipse.birt.chart.model.data.SeriesDefinition

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.