lines.add(new SimpleNumberSeries<Double>(4.0, 2.0, 9.0, 16.0));
lines.add(new SimpleNumberSeries<Double>(3.0, 7.0, 6.25, 3.125));
JQPlot chart3b = new JQPlot("chart3b", new ListModel<SimpleNumberSeries<Double>>(lines));
PlotOptions chart3bO = chart3b.getOptions();
chart3bO.setStackSeries(true);
chart3bO.getLegend().setShow(true).setLocation(PlotLegendLocation.nw);
chart3bO.setTitle("Unit Sales: Acme Decoy Division");
chart3bO.getSeriesDefaults().setRenderer("$.jqplot.BarRenderer");
PlotBarRendererOptions renderOptions = new PlotBarRendererOptions();
renderOptions.setBarPadding(6.0);
renderOptions.setBarMargin(40.0);
chart3bO.getSeriesDefaults().setRendererOptions(renderOptions);
chart3bO.addNewSeries().setLabel("1st Qtr");
chart3bO.addNewSeries().setLabel("2nd Qtr");
chart3bO.getAxes().getXaxis().setRenderer("$.jqplot.CategoryAxisRenderer");
chart3bO.getAxes().getXaxis().setTicks("Q1", "Q2", "Q3", "Q4");
chart3bO.getAxes().getYaxis().setMin(0).setMax(20).setNumberTicks(5);
add(chart3b);
}