X-Git-Url: https://nos-oignons.net/gitweb/website.git/blobdiff_plain/6205ff5f0099dd835af73ce4e349b67c39bc2f12..72577b5b3621d0c397b559ef651d3b6282ef66ce:/assets/pie_graphs.js?ds=sidebyside diff --git a/assets/pie_graphs.js b/assets/pie_graphs.js index 4fb9f51..e607fa5 100644 --- a/assets/pie_graphs.js +++ b/assets/pie_graphs.js @@ -9,13 +9,13 @@ PieDrawer.formatPercent = d3.format(".2%"); PieDrawer.color_nos_oignons = "#ffa430"; PieDrawer.color_others = "#57075f"; -PieDrawer.arc = d3.arc() +PieDrawer.arc = d3.svg.arc() .outerRadius(PieDrawer.radius - 10) .innerRadius(PieDrawer.radius - 40); PieDrawer.labelRadius = PieDrawer.radius - 15; -PieDrawer.pie = d3.pie() +PieDrawer.pie = d3.layout.pie() .sort(null) .value(function(d) { return d.frac; });