随笔分类 -  前端 / echarts

摘要:echarts图例点击会有一个默认的点击事件,会把点击的图例对应的legend取消 解决办法 legendselectchanged事件中将取消选中的legend动态设置回来,主要代码如下: let chart = echarts.init(document.getElementById('main 阅读全文
posted @ 2024-05-29 10:50 槑孒 阅读(1412) 评论(0) 推荐(0) 编辑
摘要:在使用echarts绘制图表时, 如果需要使用渐变色, 则应使用echarts内置的渐变色生成器echarts.graphic.LinearGradient series: [ { name: '', type: 'bar', barMaxWidth: 20, label: { show: true 阅读全文
posted @ 2024-05-29 09:03 槑孒 阅读(1904) 评论(0) 推荐(0) 编辑
摘要:https://echarts.apache.org/zh/option.html#xAxis xAxis: { show:false, // 不显示坐标轴线、坐标轴刻度线和坐标轴上的文字 axisTick:{ show:false // 不显示坐标轴刻度线 }, axisLine: { show: 阅读全文
posted @ 2024-05-28 16:48 槑孒 阅读(1011) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示