提交 7c7fb5e3 编写于 作者: R Rupeshiya 提交者: 偏右

Update index.js (#1335)

corrected spelling in src/components/chart/pie/index.js
上级 2d47f4b0
......@@ -19,7 +19,7 @@ export default class Pie extends Component {
};
componentDidMount() {
this.getLengendData();
this.getLegendData();
this.resize();
window.addEventListener('resize', this.resize);
}
......@@ -33,7 +33,7 @@ export default class Pie extends Component {
legendData: [...this.state.legendData],
},
() => {
this.getLengendData();
this.getLegendData();
}
);
}
......@@ -49,7 +49,7 @@ export default class Pie extends Component {
};
// for custom lengend view
getLengendData = () => {
getLegendData = () => {
if (!this.chart) return;
const geom = this.chart.getAllGeoms()[0]; // 获取所有的图形
const items = geom.get('dataArray') || []; // 获取图形对应的
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册