projects
/
website.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a43d3eb
)
pie_graphs: Mise à jour pour l'API de d3 v5.5.0
author
Nicolas Braud-Santoni
<nicolas@braud-santoni.eu>
Sat, 4 Aug 2018 07:07:01 +0000
(15:07 +0800)
committer
Nicolas Braud-Santoni
<nicolas@braud-santoni.eu>
Sat, 4 Aug 2018 07:07:01 +0000
(15:07 +0800)
assets/pie_graphs.js
patch
|
blob
|
history
diff --git
a/assets/pie_graphs.js
b/assets/pie_graphs.js
index e607fa5c9649d82948a55340e4806e79e0272688..4fb9f51bcc05550368375571904183333125160b 100644
(file)
--- 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.
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; });