D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
fogonwater
Full window
Github gist
Visualising electorate and party vote flows
<!DOCTYPE html> <html lang="eng"> <head> <meta charset="UTF-8"> <title>Split votes — all electorates</title> <script src="https://d3js.org/d3.v4.min.js"></script> <script src="sankey.js"></script> <style> body { font-family: Helvetic, Arial, Sans-Serif; color: #333; } div.container { margin-top: 10px; } .axis path, .axis line { fill: none; stroke: #000; shape-rendering: crispEdges; } </style> </head> <body> <div class="container"> <div id="chart" style="text-align:center"></div> </div> <script src="script.js" type="text/javascript"></script> </body> </html>
https://d3js.org/d3.v4.min.js