Skip to content

Commit

Permalink
pie chart doesnt render small slices correctly (#8986)
Browse files Browse the repository at this point in the history
* pie chart doesnt render small slices correctly
  • Loading branch information
ppisljar authored Nov 8, 2016
1 parent 438038b commit a9769e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ui/public/vislib/visualizations/pie_chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +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 < 1e-8) return x(d.x);
return Math.max(0, Math.min(2 * Math.PI, x(d.x + d.dx)));
})
.innerRadius(function (d) {
Expand Down

0 comments on commit a9769e1

Please sign in to comment.