l1.addEntry(i, Math.cos(i));
@SuppressWarnings("unchecked")
JQPlot chart3 =
new JQPlot("chart3", new ListModel<NumberSeries<Double, Double>>(Arrays.asList(l1)));
PlotOptions chart3O = chart3.getOptions();
PlotSeries chart3series1 = chart3O.addNewSeries();
chart3series1.setShowMarker(false);
chart3O.getAxes().getXaxis().setLabel("Angle (radians)");
chart3O.getAxes().getXaxis().setAutoscale(true);
chart3O.getAxes().getXaxis().setLabelRenderer("$.jqplot.CanvasAxisLabelRenderer");
chart3O.getAxes().getXaxis().getLabelOptions().setEnableFontSupport(true);
chart3O.getAxes().getXaxis().getLabelOptions().setFontFamily("Georgia");
chart3O.getAxes().getXaxis().getLabelOptions().setFontSize("12pt");
chart3O.getAxes().getYaxis().setLabel("Cosine");
chart3O.getAxes().getYaxis().setAutoscale(true);
chart3O.getAxes().getYaxis().setLabelRenderer("$.jqplot.CanvasAxisLabelRenderer");
chart3O.getAxes().getYaxis().getLabelOptions().setEnableFontSupport(true);
chart3O.getAxes().getYaxis().getLabelOptions().setFontFamily("Georgia");
chart3O.getAxes().getYaxis().getLabelOptions().setFontSize("12pt");
add(chart3);
}