官網: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"//此處是主題的名稱
);
主題名字來源於官網