官网:https://www.echartsjs.com/zh/index.html
1.导入(前提是已经安装了echarts)
import echarts from "echarts";
import 'echarts/theme/shine.js'
2.使用
echarts.init(
document.getElementById("huanfu"),
"shine"//此处是主题的名称
);
主题名字来源于官网
官网:https://www.echartsjs.com/zh/index.html
import echarts from "echarts";
import 'echarts/theme/shine.js'
echarts.init(
document.getElementById("huanfu"),
"shine"//此处是主题的名称
);
主题名字来源于官网