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

   ### What problem does this feature solve?
   
   
现在echarts上的label都是直接设置字体颜色或者通过‘inherit’来继承颜色,为什么不直接设置成函数返回,这样动态自由的设置字体颜色呢?这样会更加的灵活通用
   
   ### What does the proposed API look like?
   
           label: {
             show: true,
             formatter: function (params) {
               let text = ''
               if (params.data) text = params.data.text
               return text
             },
             fontSize: 12,
             color:  function (params) {
               return params.data.color
             },,
           },


-- 
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: [email protected]

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