JQPlot chart4 = new JQPlot("chart4", new ListModel<BaseSeries<String, Double>>(lines));
PlotOptions chart4O = chart4.getOptions();
chart4O.setTitle("Pie Chart with Legend and sliceMargin");
PlotPieRendererOptions renderOptions = new PlotPieRendererOptions();
renderOptions.setSliceMargin(8.0);
chart4O.getSeriesDefaults().setRenderer("$.jqplot.PieRenderer")
.setRendererOptions(renderOptions);
chart4O.getLegend().setShow(true);
add(chart4);