]> nos-oignons.net Git - website.git/blobdiff - assets/pie_graphs.js
Annule toute mes modifications
[website.git] / assets / pie_graphs.js
index 4fb9f51bcc05550368375571904183333125160b..e607fa5c9649d82948a55340e4806e79e0272688 100644 (file)
@@ -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; });