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

Share RGraph:   Share or Like RGraph on Facebook!

« 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

Add a reply




« Back to message list