// work properly
SeriesHandler ottawaSeries = model.addSeries("Ottawa", "#edc240");
SeriesHandler vancouverSeries = model.addSeries("Vancouver", "#afd8f8");
// add data
ottawaSeries.add(new DataPoint(1, -10.5));
ottawaSeries.add(new DataPoint(2, -8.6));
ottawaSeries.add(new DataPoint(3, -2.4));
ottawaSeries.add(new DataPoint(4, 6));
ottawaSeries.add(new DataPoint(5, 13.6));
ottawaSeries.add(new DataPoint(6, 18.4));
ottawaSeries.add(new DataPoint(7, 21));
ottawaSeries.add(new DataPoint(8, 19.7));
ottawaSeries.add(new DataPoint(9, 14.7));
ottawaSeries.add(new DataPoint(10, 8.2));
ottawaSeries.add(new DataPoint(11, 1.5));
ottawaSeries.add(new DataPoint(12, -6.6));
vancouverSeries.add(new DataPoint(1, 4.8));
vancouverSeries.add(new DataPoint(2, 5.9));
vancouverSeries.add(new DataPoint(3, 7.6));
vancouverSeries.add(new DataPoint(4, 10));
vancouverSeries.add(new DataPoint(5, 13.2));
vancouverSeries.add(new DataPoint(6, 15.9));
vancouverSeries.add(new DataPoint(7, 18.1));
vancouverSeries.add(new DataPoint(8, 18.3));
vancouverSeries.add(new DataPoint(9, 15.4));
vancouverSeries.add(new DataPoint(10, 11.1));
vancouverSeries.add(new DataPoint(11, 7.1));
vancouverSeries.add(new DataPoint(12, 4.8));
// create the plot
SimplePlot plot = new SimplePlot(model, plotOptions);
// put it on a panel