]> nos-oignons.net Git - website.git/blobdiff - assets/pie_graphs.js
pie_graphs: Mise à jour pour l'API de d3 v5.5.0
[website.git] / assets / pie_graphs.js
index e607fa5c9649d82948a55340e4806e79e0272688..4fb9f51bcc05550368375571904183333125160b 100644 (file)
@@ -9,13 +9,13 @@ PieDrawer.formatPercent = d3.format(".2%");
 PieDrawer.color_nos_oignons = "#ffa430";
 PieDrawer.color_others = "#57075f";
 
-PieDrawer.arc = d3.svg.arc()
+PieDrawer.arc = d3.arc()
     .outerRadius(PieDrawer.radius - 10)
     .innerRadius(PieDrawer.radius - 40);
 
 PieDrawer.labelRadius = PieDrawer.radius - 15;
 
-PieDrawer.pie = d3.layout.pie()
+PieDrawer.pie = d3.pie()
     .sort(null)
     .value(function(d) { return d.frac; });