Do not join data points when data does not exist

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Jyothy
Posts: 17
Joined: Fri Mar 24, 2006 6:46 am

Do not join data points when data does not exist

Post by Jyothy » Mon May 29, 2006 7:21 am

I am using Jfree charts for rendering grpahs for monitoring solution of our application.

When is no data in database the data points in the TimeSeries are still joined in the graph.

For example: If data is stored from 2 PM to 5 PM and then from 5PM to 8PM data is not collected in database. but data point at 5PM and daat point at 8PM is joined which gives a wrong impression that data is collected during 5 - 8 PM.

How do i represent in the graph that data is not being collected during a particular period.

Thanks in advance
Jyothy

skunk
Posts: 1087
Joined: Thu Jun 02, 2005 10:14 pm
Location: Brisbane, Australia

Post by skunk » Mon May 29, 2006 2:42 pm

Most renderers are smart enough to skip datapoints with the value = Double.NaN / null.

Jyothy
Posts: 17
Joined: Fri Mar 24, 2006 6:46 am

Post by Jyothy » Tue May 30, 2006 11:46 am

I need to show the represention in graph that value is NAN or null but not skip them.


Jyothy

Locked