writer.write("}");
//series
writer.write(",series:[");
for(Iterator<ChartSeries> it = model.getSeries().iterator(); it.hasNext();) {
ChartSeries series = (ChartSeries) it.next();
String seriesRenderer = series.getRenderer();
boolean fill = series.isFill();
writer.write("{");
writer.write("label:'" + series.getLabel() + "'");
if(series instanceof LineChartSeries) {
LineChartSeries lineChartSeries = (LineChartSeries) series;
writer.write(",showLine:" + lineChartSeries.isShowLine());
writer.write(",markerOptions:{show:" + chart.isShowMarkers()+ ", style:'" + lineChartSeries.getMarkerStyle() + "'}");