Commit b918f443 authored by wangyun's avatar wangyun Committed by 陈帅

fix error in workplace #1660

parent c100052f
...@@ -31,6 +31,7 @@ export default class Radar extends Component { ...@@ -31,6 +31,7 @@ export default class Radar extends Component {
getLegendData = () => { getLegendData = () => {
if (!this.chart) return; if (!this.chart) return;
const geom = this.chart.getAllGeoms()[0]; // 获取所有的图形 const geom = this.chart.getAllGeoms()[0]; // 获取所有的图形
if (!geom) return;
const items = geom.get('dataArray') || []; // 获取图形对应的 const items = geom.get('dataArray') || []; // 获取图形对应的
const legendData = items.map(item => { const legendData = items.map(item => {
......
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