Open succulen-plants opened 4 years ago
在echarts原版遇到了类似的问题 是data格式不符合API标准导致的,仔细对照一下吧。 错误:
series:[ {
geoIndex: 0,
name: "border",
type: 'lines',
data: {
coords: [
[118, 28],
[118, 33],
],}
},
}],
正确
series:[ {
geoIndex: 0,
name: "border",
type: 'lines',
data: [{
coords: [
[118, 28],
[118, 33],
],}
}],
}],
ERROR TypeError: this._rawData.getSource is not a function at List.push../node_modules/echarts/lib/data/List.js.listProto.initData (List.js:453) at ExtendedClass.getInitialData (echarts-gl.js:30557) at ExtendedClass.init (Series.js:136) at ExtendedClass. (Global.js:238)
at Array.forEach ()
at each (util.js:300)
at ExtendedClass.visitComponent (Global.js:212)
at Function.entity.topologicalTravel (component.js:125)
at ExtendedClass.mergeOption (Global.js:194)
at ExtendedClass.initBase (Global.js:663)
angular: 9.1.4 echarts:4.8.0 "echarts-gl": "^1.0.0-alpha.5",