echart
作者:互联网
中文文档:Handbook - Apache ECharts
api,可在搜索栏搜索感兴趣的字段、函数等,像vuex一样:Documentation - Apache ECharts
1、安装
npm i echart@5.1.2
2、使用
import * as echarts from "echarts"; //折线图 const option = { xAxis: { data: xData, }, yAxis: {}, legend: { data: keyArray, }, // 提示框 tooltip: { trigger: "axis", }, series, }; const E = echarts.init(this.$refs.echarts); //初始化echart E.setOption(option); //绘制图表标签:const,echart,Apache,data,echarts,option 来源: https://www.cnblogs.com/the-big-dipper/p/16559515.html