ALLLRON opened a new issue #14333:
URL: https://github.com/apache/echarts/issues/14333


   
   option = {
       xAxis: {
           type: 'category',
           boundaryGap: false,
           data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
       },
       yAxis: {
           type: 'value'
       },
       series: [{
           data: [820, 932, 901, 934, 1290, 1330, 1320],
           type: 'line',
           areaStyle: {
               color:(p)=>{
                   console.log(p)
               }
           },
           itemStyle:{
               color:(p)=>{
                   console.log('p1',p)
               }
           }
       }]
   };
   
   itemStyle.color 支持 function, areaStyle.color 不支持function 类型
   
![image](https://user-images.githubusercontent.com/31984854/108973604-80ffa200-76bf-11eb-90fa-36ee8e4544fe.png)
   
   
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to