Line chart with spline = true runs off the chart for NULL values

Share RGraph:   To help my Google visibility (it can't get much worse!), if you like and use RGraph I'd appreciate it if you could link to me

« Back to message list

Enter your email address to get email updates on this topic. You can stop receiving updates by clicking the link in the update email messages.

Posted by Richard on 19th March 2014
Using the following code:

var line = new RGraph.Line('cvs', [40, 60, 100, null, null, null, null, null, null, null, null, null])
  .Set('ymax', 200)
  .Set('spline', true)
  ...

Results in the line rising correctly for the three points but instead of stopping at three points it keeps going right off the top of the chart and then goes horizontal in the top gutter.

Removing the spline=true causes it to have the correct behavior of plotting a line with only three points.

Is there a fix?

Posted by Richard on 19th March 2014
Hi there,

Yes the spline doesn't support null values I'm afraid.



Richard
www.rgraph.net
If RGraph has helped you - please share the website - thanks!

Add a reply




« Back to message list