随笔分类 -  echarts

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