From 7c7fb5e3d0e5cca2e54c10eaf3644e44144eb6a5 Mon Sep 17 00:00:00 2001 From: Rupeshiya <31209617+Rupeshiya@users.noreply.github.com> Date: Fri, 20 Apr 2018 22:33:29 +0530 Subject: [PATCH] Update index.js (#1335) corrected spelling in src/components/chart/pie/index.js --- src/components/Charts/Pie/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Charts/Pie/index.js b/src/components/Charts/Pie/index.js index ac7248d7..0d0dc3c5 100644 --- a/src/components/Charts/Pie/index.js +++ b/src/components/Charts/Pie/index.js @@ -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') || []; // 获取图形对应的 -- GitLab