You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2021/07/29 10:18:39 UTC

[GitHub] [echarts] crazyair opened a new issue #15430: tootip 如果优美的格式化金额、百分比值

crazyair opened a new issue #15430:
URL: https://github.com/apache/echarts/issues/15430


   ### What problem does this feature solve?
   ![image](https://user-images.githubusercontent.com/7971419/127470931-8d03f0ed-948c-4bbd-a481-0f9d554cd858.png)
   
   
   ### What does the proposed API look like?
   这里显示的值想要 formatter 格式化为不同格式,但是只有 tooltip.formatter 拼接整个 html,但是一般情况下只需要修改值的格式,不需要改其他内容,想要实现如下 API
   ```js
           tooltip: {
               formatter: data => {
                   return { name: data.type, value: `${data.value}%` };
               },
           },
   ```
   
   <!-- 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.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] Ovilia closed issue #15430: tootip 如何优美的格式化金额、百分比值

Posted by GitBox <gi...@apache.org>.
Ovilia closed issue #15430:
URL: https://github.com/apache/echarts/issues/15430


   


-- 
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: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] Ovilia commented on issue #15430: tootip 如何优美的格式化金额、百分比值

Posted by GitBox <gi...@apache.org>.
Ovilia commented on issue #15430:
URL: https://github.com/apache/echarts/issues/15430#issuecomment-938542996


   Please follow #14962.


-- 
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: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] echarts-bot[bot] commented on issue #15430: tootip 如果优美的格式化金额、百分比值

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #15430:
URL: https://github.com/apache/echarts/issues/15430#issuecomment-888994235






-- 
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: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org