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


   @showmethecode9527 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>
   
   **BODY**
   
   ### What problem does this feature solve?
   
   Current 'formatter' of 'legend' only supports the legend name 'name' 
parameter, not 'value'
   
   `legend.formatter` params only support `name`, not support `value`
   
   
[legend.formatter](https://echarts.apache.org/zh/option.html#legend.formatter)
   
   ### What does the proposed API look like?
   
   ```js
   Use a string template with the template variable as the legend name {name}
   formatter: 'Legend {name}: {value}'
   Use callback functions
   formatter: function (name, value) {
       return 'Legend ' + name + ':' + value;
   }
   ```
   </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