mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
pie chart doesnt render small slices correctly
This commit is contained in:
parent
aa69744f67
commit
a5c23a5960
1 changed files with 1 additions and 0 deletions
|
@ -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 < 0.00000001) return x(d.x);
|
||||
return Math.max(0, Math.min(2 * Math.PI, x(d.x + d.dx)));
|
||||
})
|
||||
.innerRadius(function (d) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue