Scatter type graph in Dygraphs?

风流意气都作罢 提交于 2019-12-19 19:05:00

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/17329875/scatter-type-graph-in-dygraphs

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!