Discontinuous points in LineChart

UI Components for JSF
Post Reply
ekh
Posts: 15
Joined: 06 Sep 2011, 09:06

29 Oct 2011, 12:26

Hi,

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);
The chart is beautifully drawn, however, when you mouseover the points, tips/tooltips get messed up for points after the first null. I've tried various combination of discontinuous points, and the issue keeps happening.

Thanks

/ekh
Work Environment
Win7, Java[1.6.0.13], GF Server[3.1], JSF[2.0], EclipseLink[JPA 2.0], NetBean[7.0]
Home Environment
iMac Lion, Java[1.6.0.26], GF Server[3.1], JSF[2.0], EclipseLink[JPA 2.0], NetBean[7.1]

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 27 guests