public static MockChartPanel createTimeseriesChart(Dataset[] ds, int width,
int height) {
Datasets<Tuple2D> datasets = new Datasets<Tuple2D>(ds);
XYPlotRenderer plotRenderer = new XYPlotRenderer();
DefaultXYPlot plot = new DefaultXYPlot();
plot.setDatasets(datasets);
plot.setPlotRenderer(plotRenderer);