Scatter and multidimensional data arrays

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 Curt Jeffreys on 20th December 2013
Hi Richard,

I am trying to pass a multidimensional array to a scatter graph with no luck.
var plot = new RGraph.Scatter(cvs,dataArray) does not work.

However
var plot = new RGraph.Line(cvs,dataArray) does work.

Any ideas? I don't modify the dataArray, just the type of graph.

Thanks,

Curt Jeffreys

 
Posted by Richard on 20th December 2013
Hi there,

Ok fixed, but Here's an example anyway in case anyone is searching for this of a Scatter chart using multi-dimensional arrays of data:

www.rgraph.net/fiddle/view/a-scatter-chart-using-multi-dimensional-data

You end up passing a 3d array to the Scatter constructor as the data.




Richard
Posted by Curt Jeffreys on 20th December 2013
Richard,

I figured it out. Sorry to bother you.

BTW, you have wonderful product here.

Curt

Add a reply




« Back to message list