changing to scientific notation

This commit is contained in:
ppisljar 2016-11-08 10:43:02 +01:00
parent a5c23a5960
commit b31258da36

View file

@ -119,7 +119,7 @@ export default function PieChartFactory(Private) {
return Math.max(0, Math.min(2 * Math.PI, x(d.x)));
})
.endAngle(function (d) {
if (d.dx < 0.00000001) return x(d.x);
if (d.dx < 1e-8) return x(d.x);
return Math.max(0, Math.min(2 * Math.PI, x(d.x + d.dx)));
})
.innerRadius(function (d) {