Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scatter type graph in Dygraphs?

Tags:

dygraphs

How can I plot a scatter graph using dygraphs. Data would be line the following.

X axis might have 5-20 values (catagories) Y values might be 1-10 values per value on the x-axis

This is an example of what i need.

Is this possible in Dygraphs?

Thanks Michael

like image 984
Michael Tapes Avatar asked Oct 21 '22 06:10

Michael Tapes


1 Answers

You can set { strokeWidth: 0.0 } in the options to simulate a scatter plot (see http://dygraphs.com/options.html#strokeWidth). You'll need the points as well: { drawPoints: true}

These demos may be instructive:

http://dygraphs.com/tests/linear-regression.html

http://dygraphs.com/tests/linear-regression-addseries.html

like image 116
danvk Avatar answered Oct 25 '22 19:10

danvk