Commit 2a108cf3 authored by afc163's avatar afc163

tweak pie position

parent abf86fa0
......@@ -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 });
});
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment