series.add(timeMillisSpend, calculateCountPerSecond);
}
seriesCollection.addSeries(series);
}
NumberAxis xAxis = new NumberAxis("Time spend");
xAxis.setNumberFormatOverride(new MillisecondsSpendNumberFormat());
NumberAxis yAxis = new NumberAxis("Calculate count per second");
yAxis.setAutoRangeIncludesZero(false);
XYItemRenderer renderer = new XYLineAndShapeRenderer();
XYPlot plot = new XYPlot(seriesCollection, xAxis, yAxis, renderer);
plot.setOrientation(PlotOrientation.VERTICAL);