Visualizing the pass traffic data with Chord Diagram

狂风中的少年 提交于 2019-12-23 02:18:19

问题


I have a pass traffic data between players, here's the data, first column and first row indicate the Player Numbers.

I want to visualize this data like Uber Rides. I think it was built with Chord Diagram from Bostock's.

Since I almost have no experience in JavaScript, I just don't know where to begin.

How can I achieve something like this?


回答1:


Here is what i got with your data

I just replaced the matrix array with your array

[2,3,1,0,0,2,0,6,5,2,5,0,3], [0,7,2,0,4,7,0,1,2,0,3,0,2], [0,0,4,1,5,3,3,0,1,1,5,1,0], [0,0,0,0,4,0,5,4,2,0,1,1,0], [0,0,0,0,0,0,0,3,2,0,1,0,1], [0,0,0,0,0,1,3,4,1,1,9,1,6], [0,0,0,0,0,0,0,1,3,0,1,1,1], [0,0,0,0,0,0,0,0,0,1,0,0,0], [0,0,0,0,0,0,0,0,5,5,5,0,8], [0,0,0,0,0,0,0,0,0,0,8,0,1], [0,0,0,0,0,0,0,0,0,0,2,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,2], [0,0,0,0,0,0,0,0,0,0,0,0,2]

I am not claiming this to be correct but just giving you a idea how simply you can achieve this with the work people already did.



来源:https://stackoverflow.com/questions/13860390/visualizing-the-pass-traffic-data-with-chord-diagram

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