|
|
|
@ -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} |
|
|
|
/> |
|
|
|
</Chart> |
|
|
|
|