使用ecahrts的官方實例的echarts.js:11954 Uncaught Error: series.type should be specified. at Function.entity.getClass (echarts.js:11954)
阿新 • • 發佈:2018-12-01
span 提示 分享圖片 使用 chart .com reac col error
由於使用echats的圖表,而直接把官方實例c過來的時候,圖表加載不出來。
瀏覽器按f12顯示這樣的錯
echarts.js:11954 Uncaught Error: series.type should be specified. at Function.entity.getClass (echarts.js:11954) at ExtendedClass.<anonymous> (echarts.js:20753) at Array.forEach (<anonymous>) at each$1 (echarts.js:528) at ExtendedClass.visitComponent (echarts.js:20736) at Function.entity.topologicalTravel (echarts.js:17832) at ExtendedClass.mergeOption (echarts.js:20706) at ExtendedClass.initBase (echarts.js:21237) at ExtendedClass.resetOption (echarts.js:20648) at ExtendedClass.setOption (echarts.js:20630)
根據提示,是這的錯誤,需要自己加載option
所以加上一句話,也就是這樣:
使用ecahrts的官方實例的echarts.js:11954 Uncaught Error: series.type should be specified. at Function.entity.getClass (echarts.js:11954)