feilongjump opened a new issue, #19996:
URL: https://github.com/apache/echarts/issues/19996

   ### What problem does this feature solve?
   
   目前 
[series-line.](https://echarts.apache.org/zh/option.html#series-line)[areaStyle.](https://echarts.apache.org/zh/option.html#series-line.areaStyle)
 
[shadowColor](https://echarts.apache.org/zh/option.html#series-line.areaStyle.shadowColor)
 好像仅支持【RGB、RGBA、十六进制格式】这三种
   
   ### What does the proposed API look like?
   
   在文档中 `shadowColor` 说明:支持的颜色同 `color`,但是 `color` 
支持渐变色或者纹理填充,可我实际使用却是一个错误的使用方式,希望以下代码能执行
   ```
   option = {
     xAxis: {
       type: 'category',
       data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
     },
     yAxis: {
       type: 'value'
     },
     series: [
       {
         data: [320, 932, 601, 934, 1090, 1500, 1320],
         type: 'line',
         smooth: true,
         itemStyle: {
           opacity: 0
         },
         lineStyle: {
           color: {
             type: 'linear',
             x: 0,
             y: 1,
             x2: 1,
             y2: 0,
             colorStops: [
               {
                 offset: 0,
                 color: '#f9a8d4' // 0% 处的颜色
               },
               {
                 offset: 1,
                 color: '#22d3ee' // 100% 处的颜色
               }
             ],
             global: false // 缺省为 false
           },
           width: 3,
           cap: 'round',
           shadowBlur: 30,
           shadowOffsetY: 5,
           shadowColor: {
             type: 'linear',
             x: 0,
             y: 1,
             x2: 1,
             y2: 0,
             colorStops: [
               {
                 offset: 0,
                 color: '#f9a8d4', // 0% 处的颜色
               },
               {
                 offset: 1,
                 color: '#22d3ee', // 100% 处的颜色
               },
             ],
             global: false, // 缺省为 false
           },
         }
       }
     ]
   };
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org
For additional commands, e-mail: commits-h...@echarts.apache.org

Reply via email to