Commit 149f4485 authored by Sylvain Schmitz's avatar Sylvain Schmitz

updated to work with D3 v.4

parent f742f407
......@@ -32,7 +32,7 @@ path.chord {
<p>Built with <a href="http://d3js.org/">D3</a>.</aside>
<script src="https://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<script src="https://d3js.org/d3.v4.min.js" charset="utf-8"></script>
<script src="https://d3js.org/queue.v1.min.js"></script>
<script>
......@@ -43,16 +43,16 @@ var width = 720,
var formatPercent = d3.format(".1%");
var arc = d3.svg.arc()
var arc = d3.arc()
.innerRadius(innerRadius)
.outerRadius(outerRadius);
var layout = d3.layout.chord()
.padding(.04)
var layout = d3.chord()
.sortSubgroups(d3.descending)
.sortChords(d3.ascending);
layout.padding = .04;
var path = d3.svg.chord()
var path = d3.ribbon()
.radius(innerRadius);
var svg = d3.select("body").append("svg")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment