Echarts line chart setting line shadow

Add shadow-related attributes to lineStyle in series: 

option = {
  ......
  series: [
    {
      ......
      lineStyle: {
        normal: {
          width: 4,
          shadowColor: 'rgba(0,0,0,1)', 
          shadowBlur: 10,
          shadowOffsetY: 10,
          shadowOffsetX: 0,
          ......
        }
      },
      ......
    }
  ]
};

No shadow effect added:

 

Add shadow effect:

 

Guess you like

Origin blog.csdn.net/u010234868/article/details/131477923