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/02/01 02:59:28 UTC

[GitHub] [echarts] wenjie-kooboo commented on issue #14136: BUG: tooltip with html not working on the H5 site created by uniapp

wenjie-kooboo commented on issue #14136:
URL: https://github.com/apache/echarts/issues/14136#issuecomment-770530577


   Hi @Ovilia , I want to use the  formatter function to custom the tooltip. For example, I want to make the words "hello world" red.
   ``` javascript
    tooltip: {
           trigger: 'item',
           renderMode: 'richText',
           formatter: function() {
               return '{a|hello world}'
           },
           rich: {
               a: {
                   color: 'red',
                   fontSize: 20
               }
           },
       },
   ```


----------------------------------------------------------------
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:
users@infra.apache.org



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