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

浙公网安备 33010602011771号