随笔分类 - echarts
摘要:初始化echarts实例 my2Chart = echarts.init(myChartas); 直接C my2Chart.getZr().on("click", (params) => { let pointInPixel = [params.offsetX, params.offsetY]; i
阅读全文
摘要:grid: { // 居右 x: 50, // 居上 y: 50, // 居左 x2: 100, // 距下 y2: 40, },
阅读全文
摘要:一、先安装echarts--Handbook - Apache ECharts; 二、在min的文件中引入 Vue.prototype.$echarts = echarts; import * as echarts from 'echarts'; 三、在html里面增加一个div设置一个id <te
阅读全文
摘要://可以先新建个数组 this.datas = []; //然后把接口传过来的数据遍历。 for (let i = 0; i < this.arrs.statistics.length; i++) { //然后把便利出来的数据push到新数组中 this.datas.push({ //最后,通过i值
阅读全文

浙公网安备 33010602011771号