{
List<SimpleNumberSeries<Integer>> lines = new ArrayList<SimpleNumberSeries<Integer>>();
lines.add(new SimpleNumberSeries<Integer>(4, 3, 9, 16, 12, 8));
lines.add(new SimpleNumberSeries<Integer>(null, null, null, 3, 7, 6));
JQPlot chart2 = new JQPlot("chart2", new ListModel<SimpleNumberSeries<Integer>>(lines));
PlotOptions chart2O = chart2.getOptions();
chart2O.getSeriesDefaults();
chart2O.getLegend().setShow(true).setLocation(PlotLegendLocation.nw);
chart2O.getAxes().getXaxis().setRenderer("$.jqplot.CategoryAxisRenderer")
.setTicks(2006, 2007, 2008, 2009, 2010, 2011);
chart2O.getAxes().getYaxis().setMin(0).setMax(20).setNumberTicks(6);