Sankey diagram in javascript

前端 未结 7 925
灰色年华
灰色年华 2021-02-02 16:22

I want to draw a Sankey diagram using Javascript. Can anyone provide some direction regarding the algorithms or libraries that are available for this?

7条回答
  •  無奈伤痛
    2021-02-02 17:07

    Thanks to zenify for starting me on the path, I had to rejig some of the copied code above to get it to work but it definitely gives a good starting point. The code below can be copied into a .htm file and you just need to have raphael-min.js in the same directory for it to work.

    Regards / Colm

    
    
    
    
    Raphael makes Sankey
    
    
    
    
        

提交回复
热议问题