diff --git a/src/components/Charts/Pie/index.js b/src/components/Charts/Pie/index.js index ce5bd30867b24ea01810ae08c2a2d504e6072da9..a517385151abe77d985c684050cf89e874df5501 100644 --- a/src/components/Charts/Pie/index.js +++ b/src/components/Charts/Pie/index.js @@ -34,7 +34,6 @@ class Pie extends Component { this.totalNode = n; } - handleLegendClick = (item, i) => { const newItem = item; newItem.checked = !newItem.checked; @@ -180,11 +179,9 @@ class Pie extends Component { }, () => { let left = 0; if (this.totalNode) { - left = -((this.totalNode.offsetWidth / 2) + ((margin || m)[1] / 2)); + left = -((this.totalNode.offsetWidth / 2) + ((margin || m)[1] / 2)) + lineWidth; } - this.setState({ - left, - }); + this.setState({ left }); }); }