随笔分类 -  echarts

一些可能会用到的echarts设置
摘要:需要设置y轴的最大最小值 和 强制设置坐标轴分割间隔 在y轴加入三个属性: Max 最大值 Min 最小值 interval 强制设置坐标轴分割间隔 //获取最大最小值的函数 cal_Max(a) { //debugger a=$.grep(a,function(n,i){return i>0;}) 阅读全文
posted @ 2020-07-31 10:36 是闷闷啊 阅读(2225) 评论(0) 推荐(0)
摘要:let chooseIndex = 0;//默认选中高亮模块索引 现在是默认第一条 that.myChart = echarts.init(document.getElementById(that.indexAll.id));that.myChart.clear();that.myChart.set 阅读全文
posted @ 2020-05-08 16:32 是闷闷啊 阅读(5623) 评论(0) 推荐(0)
摘要:series: [{ itemStyle: { normal: { 右 上 左 下 color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [{ offset: 0, color: "red" // 0% 处的颜色 }, { offset: 0.6 阅读全文
posted @ 2019-12-17 13:53 是闷闷啊 阅读(346) 评论(0) 推荐(0)
摘要:把点变成长方形 隐藏折线图的线的配置 阅读全文
posted @ 2019-12-17 13:49 是闷闷啊 阅读(3019) 评论(0) 推荐(0)