List<BaseSeries<String, Integer>> lines = new ArrayList<BaseSeries<String, Integer>>();
lines.add(line);
JQPlot chart1 = new JQPlot("chart1", new ListModel<BaseSeries<String, Integer>>(lines));
PlotOptions chart1O = chart1.getOptions();
chart1O.setTitle("Concern vs. Occurrance");
chart1O.addNewSeries().setRenderer("$.jqplot.BarRenderer");
chart1O.getAxes().getXaxis().setRenderer("$.jqplot.CategoryAxisRenderer");
chart1O.getAxes().getXaxis().setLabel("Warranty Concern");
chart1O.getAxes().getXaxis().setTickRenderer("$.jqplot.CanvasAxisTickRenderer");
PlotCanvasAxisTickRendererOptions xAxisTickOptions =
new PlotCanvasAxisTickRendererOptions();
xAxisTickOptions.setAngle(-30.0);
xAxisTickOptions.setEnableFontSupport(true);
chart1O.getAxes().getXaxis().setTickOptions(xAxisTickOptions);
chart1O.getAxes().getYaxis().setAutoscale(true);
chart1O.getAxes().getYaxis().setLabel("Occurance");
chart1O.getAxes().getYaxis().setTickRenderer("$.jqplot.CanvasAxisTickRenderer");
PlotCanvasAxisTickRendererOptions yAxisTickOptions =
new PlotCanvasAxisTickRendererOptions();
yAxisTickOptions.setAngle(-30.0);
yAxisTickOptions.setEnableFontSupport(true);
chart1O.getAxes().getYaxis().setTickOptions(yAxisTickOptions);
add(chart1);
}