diff --git a/src/components/Charts/Pie/index.js b/src/components/Charts/Pie/index.js index 124fb748e332d3af5ef1101bba127f9e05cc8891..76134ed72f3f3d71469e8efd0082ee56f52e6463 100644 --- a/src/components/Charts/Pie/index.js +++ b/src/components/Charts/Pie/index.js @@ -167,7 +167,7 @@ class Pie extends Component { }, }; - if (percent) { + if (percent || percent === 0) { selected = false; tooltip = false; formatColor = value => { @@ -227,7 +227,7 @@ class Pie extends Component { tooltip={tooltip && tooltipFormat} type="intervalStack" position="percent" - color={['x', percent ? formatColor : defaultColors]} + color={['x', percent || percent === 0 ? formatColor : defaultColors]} selected={selected} />