随笔分类 - 前端 / echarts
摘要:echarts图例点击会有一个默认的点击事件,会把点击的图例对应的legend取消 解决办法 legendselectchanged事件中将取消选中的legend动态设置回来,主要代码如下: let chart = echarts.init(document.getElementById('main
阅读全文
摘要:在使用echarts绘制图表时, 如果需要使用渐变色, 则应使用echarts内置的渐变色生成器echarts.graphic.LinearGradient series: [ { name: '', type: 'bar', barMaxWidth: 20, label: { show: true
阅读全文
摘要:https://echarts.apache.org/zh/option.html#xAxis xAxis: { show:false, // 不显示坐标轴线、坐标轴刻度线和坐标轴上的文字 axisTick:{ show:false // 不显示坐标轴刻度线 }, axisLine: { show:
阅读全文