I am creating a LineChart with CartesianChartModel and ChatSeries. After digging here and there, by supplying a null value, the graph looks just as expected; when data actually doesn't exist for that particular time in the series.
Code: Select all
ChartSeries cs = new ChartSeries();
cs.setLabel("Some Label");
cs.set("June", 190);
cs.set("July", 200);
cs.set("August", 160);
cs.set("September", null);
cs.set("October", 220);
cs.set("November", null);
cs.set("December", 210);
Thanks
/ekh