Sign in to follow this  
Guest Basundhara Ghosal

Trendline not displayed if start/endValue is outside of Y axis

Recommended Posts

I have a Real-time Dual-Y Line Chart that wants the Y-axis to be adaptive but would like to show trendzones.

 

I do not have specific min or max values. They could be anything (hence the adaptive requirement).

 

 

 

I would like to (using Trendlines in zone mode) to simply set the background color for portions of the chart to be as follows:

 

anything below 5 would display green (i.e. bottom of the chart)

 

anything between 5 and 10 would display yellow (middle of the chart)

 

and anything above 10 would display red. (top)

 

 

 

Now even with these types of trendline zones the data coming in might all be between the values of 2 and 4 in which case (because of the adaptive Y) I would expect to see the entire chart green.

 

 

 

Sadly it seems that the lines defined in trendlines must have a start and end value otherwise the color will not appear. I was hoping if I did not specify an end or start that it would simply mean any value below the end or above the start (whichever is specified). Since that did not work I tried using both end and start values for all lines but due to the adaptive Y setting, if the a trendline's start or end value falls outside the range of the current set of data so that it does not appear on the Y axis then the chart again does not display the trend color.

 

 

 

Using the attached XML for the chart with this data

 

[["null", "Alarms"],["14:02:54", 1],["14:03:04", 4],["14:03:14", 16],["14:03:24", 8],["14:03:34", 12],["14:03:44", 18],["14:03:54", 17],["14:04:05", 0],["14:04:15", 16],["14:04:25", 2],["14:04:35", 13],["14:04:45", 17],["14:04:55", 5],["14:05:06", 2],["14:05:16", 6],["14:05:26", 0],["14:05:37", 0],["14:05:47", 16],["14:05:57", 8],["14:06:07", 4],["14:06:17", 12],["14:06:27", 7],["14:06:37", 14],["14:06:47", 0],["14:06:57", 18],["14:07:07", 2],["14:07:17", 1],["14:07:27", 4],["14:07:37", 1],["14:07:48", 9],["14:07:58", 3],["14:08:08", 17],["14:08:18", 8],["14:08:28", 17],["14:08:38", 17],["14:08:48", 19],["14:08:58", 13],["14:09:08", 14],["14:09:18", 5],["14:09:28", 12]]

 

 

 

and you'll see the problem. Because the high end of the data is only at 19 the Y Axis only displays up to 19 and the trendzone (10 to 30) does not take affect even though values are above the startValue for that line.

 

 

 

Is this a bug? or am I doing something incorrect?

 

 

 

Thanks,

 

J

livechart.xml

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi Jayzeb,

Welcome to FusionCharts forum. :)

I am afraid, FusionCharts does not support this.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this