Show TimeSeries graph with 3 series in single line

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

Show TimeSeries graph with 3 series in single line

Post by Jyothy » Tue May 16, 2006 2:56 pm

I am using Time series graph. i always have 3 ranges critical, warning and clear. I need to draw a horizontal line at all 3 ranges

eg : value greater than 70 is critical , graterthan 40 and less than 70 is warning.
so i need to draw a line to specify the range in graph along wioth label.


Infact i can use 3 series and use TimesSeries Collection but it renders 3 diffrent series graph(with 3 diffrent colors) but, i need i single line but show all the 3 ranges with 3 diffrent colors or single line but 3 horizontal lines to specify ranges.


Thanks in advance

Jyothy

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

Post by skunk » Tue May 16, 2006 4:12 pm

Have you tried adding one or more XYLineAnnotations to your plot?

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

Do not join data points when data not stored in database.

Post by Jyothy » Fri May 26, 2006 12:22 pm

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

Locked