使用echarts画Graph Webkit Dep时,引用cdn包
<script src="https://cdn.bootcss.com/echarts/4.4.0-rc.1/echarts-en.common.js"></script>
echarts-en.common.js:12262 Uncaught Error: Component series.graph not exists. Load it first. at Function.entity.getClass (echarts-en.common.js:12262) at ExtendedClass.<anonymous> (echarts-en.common.js:21540) at Array.forEach (<anonymous>) at each$1 (echarts-en.common.js:532) at ExtendedClass.visitComponent (echarts-en.common.js:21523) at Function.entity.topologicalTravel (echarts-en.common.js:18617) at ExtendedClass.mergeOption (echarts-en.common.js:21493) at ExtendedClass.initBase (echarts-en.common.js:22024) at ExtendedClass.resetOption (echarts-en.common.js:21435) at ExtendedClass.setOption (echarts-en.common.js:21417)
经过一番查询,发现是因为引用js问题导致。更改为:
<script src=" <script src="https://cdn.bootcss.com/echarts/4.4.0-rc.1/echarts-en.min.js"></script>