echarts-liquidfill

echart的水晶图

安装并引入了水晶图的文件,但是一直报错Component series.liquidFill not exists. Load it first.百度删了node_modules,引入方式换种写法都试了,最后发现是版本的问题

import echarts from 'echarts';
import 'echarts-liquidfill';


 "echarts": "^4.1.0",
 "echarts-liquidfill": "^2.0.2",
//这样搭配就没问题了,然后就可以正常使用了

具体使用参考官网 

原文地址:https://www.cnblogs.com/alhh/p/9816931.html