String id = Integer.toString(i+1) + ". ";
if (cd.getLabel() != null)
id += " " + cd.getLabel();
ILineSeries lineSeries = (ILineSeries) this.chart.getSeriesSet().createSeries(SeriesType.LINE,id);
lineSeries.setXDateSeries(labelLine.toArray(new Date[labelLine.size()]));
lineSeries.setYSeries(toArray(dataLine));
//////////////////////////////////////////////////////////////////////////
// Layout
lineSeries.setSymbolType(PlotSymbolType.NONE);
lineSeries.enableArea(true); // Flaeche ausmalen
lineSeries.setAntialias(SWT.ON);
lineSeries.enableStack(this.isStacked());
lineSeries.enableStep(!cd.getCurve());
lineSeries.setLineWidth(1);
//
//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////
// Farben
int[] cValues = cd.getColor();
if (cValues == null)
cValues = ColorGenerator.create(ColorGenerator.PALETTE_OFFICE + i);
lineSeries.setLineColor(getColor(new RGB(cValues[0],cValues[1],cValues[2])));
lineSeries.enableArea(cd.isFilled());
//
//////////////////////////////////////////////////////////////////////////
}
this.chart.getAxisSet().adjustRange();