echarts-bot[bot] commented on issue #19070:
URL: https://github.com/apache/echarts/issues/19070#issuecomment-1702546810

   @liuwo23 It seems you are not using English, I've helped translate the 
content automatically. To make your issue understood by more people and get 
helped, we'd like to suggest using English next time. 🤗
   <details><summary><b>TRANSLATED</b></summary><br>
   
   **TITLE**
   
   [Feature] Whether the label can dynamically return color and size
   
   **BODY**
   
   ### What problem does this feature solve?
   
   Now the label on echarts directly sets the font color or inherits the color 
through 'inherit', why not directly set it as a function return, so that the 
font color can be set dynamically and freely? This will be more flexible and 
general
   
   ### 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
             },,
           },
   </details>


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