PlotOptions chart3O = chart3.getOptions();
chart3O.setStackSeries(true);
chart3O.getLegend().setShow(true).setLocation(PlotLegendLocation.se);
chart3O.setTitle("Unit Sales: Acme Decoy Division");
chart3O.getSeriesDefaults().setRenderer("$.jqplot.BarRenderer");
PlotBarRendererOptions renderOptions = new PlotBarRendererOptions();
renderOptions.setBarDirection(PlotBarDirection.horizontal);
renderOptions.setBarPadding(6.0);
renderOptions.setBarMargin(40.0);
chart3O.getSeriesDefaults().setRendererOptions(renderOptions);
chart3O.addNewSeries().setLabel("1st Qtr");
chart3O.addNewSeries().setLabel("2nd Qtr");
chart3O.getAxes().getYaxis().setRenderer("$.jqplot.CategoryAxisRenderer");
chart3O.getAxes().getYaxis().setTicks("Q1", "Q2", "Q3", "Q4");