diff --git a/src/components/Charts/Pie/index.js b/src/components/Charts/Pie/index.js index 23be5f4b88f89edd3cb636c3018f1943a2e71e50..ac5703ce29215db845c72ca35fec098a15ae271f 100644 --- a/src/components/Charts/Pie/index.js +++ b/src/components/Charts/Pie/index.js @@ -228,7 +228,9 @@ export default class Pie extends Component { /> {item.x} - {`${(item.percent * 100).toFixed(2)}%`} + + {`${(isNaN(item.percent) ? 0 : item.percent * 100).toFixed(2)}%`} +