Ovilia opened a new issue #11878: More powerful formatters: pipes URL: https://github.com/apache/incubator-echarts/issues/11878 ### What problem does this feature solve? ECharts has many `formatter` options, which provides a flexible display method in both forms of string and function. In some cases, function is not applicative, like formatters in theme or in Baidu Smart App. So, I'd suggest we provide some frequently used pipes so that users can use it in string format. ### What does the proposed API look like? - `{a | thousandSeparator} kg`: if `{a}` is 1234567, the output is `1,234,567 kg`. - `{b | decimalPlaces: 2}cm`: if `{b}` is 12.3456, the output is `12.34cm`. - ... <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE --> <!-- This issue is in English. DO NOT REMOVE -->
---------------------------------------------------------------- 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] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
