showmethecode9527 opened a new issue #16567: URL: https://github.com/apache/echarts/issues/16567
### What problem does this feature solve? 当前 `legend` 的 `formatter` 只支持图例名称 `name` 参数,不支持 `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 // 使用字符串模板,模板变量为图例名称 {name} formatter: 'Legend {name}: {value}' // 使用回调函数 formatter: function (name, value) { return 'Legend ' + name + ':' + value; } ``` -- 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]
