]> nos-oignons.net Git - website.git/commitdiff
pie_graphs: Mise à jour pour l'API de d3 v5.5.0
authorNicolas Braud-Santoni <nicolas@braud-santoni.eu>
Sat, 4 Aug 2018 07:07:01 +0000 (15:07 +0800)
committerNicolas Braud-Santoni <nicolas@braud-santoni.eu>
Sat, 4 Aug 2018 07:07:01 +0000 (15:07 +0800)
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; });