一品网
  • 首页

echarts折线图设置渐变色


series: [
   {
       type: 'line',
       areaStyle: {
            color: {
              type: 'linear',
              x: 0,
              y: 0,
              x2: 0,
              y2: 1,
              colorStops: [{
                offset: 0, color: 'rgba(125,72,255,0.5)'
              }, {
                offset: 1, color: 'rgba(0,180,255,0.3)'
              } ],
              global: false
            }
      },

    }       
]            

设置折线图颜色为渐变色,效果如下图

echarts

相关


echarts坐标轴线文字换行

echarts Y轴负轴显示正值

Echarts之美国新冠疫情地图制作

使用Bootstraptable(echarts) toolbox鼠标移动上去中文注释乱码问题

数据分析(三) 数据可视化 Pyecharts 的使用案例(未完待续)

echarts 双环饼形图

Vue 使用 echarts 散点图在区域内标点

vue项目Echarts更新数据是数据表展示错版

echarts热词云尝试

vue---echarts图表

🍖pyecharts 模块的简单使用(可视化神器)

echarts中的玫瑰图(饼图)如何取消显示指示线和指示文字(coderwhy后台管理系统优化2)

标签

一品网 冀ICP备14022925号-6