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/08/23 10:37:17 UTC

[GitHub] [echarts] liuyuan22 opened a new issue #15584: Custom tooltip with formatter option looks weird

liuyuan22 opened a new issue #15584:
URL: https://github.com/apache/echarts/issues/15584


   ### Version
   4.8.0
   
   ### Reproduction link
   [https://www.makeapie.com/editor.html?c=xq137jH_Ko](https://www.makeapie.com/editor.html?c=xq137jH_Ko)
   
   ### Steps to reproduce
   1. open https://www.makeapie.com/editor.html?c=xq137jH_Ko
   2. move your cursor into the chart, then you will see the tooltip
   
   ### What is expected?
   The tooltip content should be ```6<Vā‰¤121```
   
   ### What is actually happening?
   The tooltip content is ```6```
   
   <!-- 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] plainheart edited a comment on issue #15584: Custom tooltip with formatter option looks weird

Posted by GitBox <gi...@apache.org>.
plainheart edited a comment on issue #15584:
URL: https://github.com/apache/echarts/issues/15584#issuecomment-904231231


   Since ECharts supports the pure HTML string in the formatter, if it contains HTML tags or any other special characters and you hope to display them originally, please manually escape it first. Refer to these comments in #14434 and #14429 for the detailed discussion.
   
   To make it simpler, you could use the provided built-in util `echarts.format.encodeHTML`.


-- 
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] plainheart commented on issue #15584: Custom tooltip with formatter option looks weird

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


   Since ECharts supports the pure HTML string in the formatter, if it contains HTML tags or any other special characters and you hope to display them originally, please manually escape it first. Refer to these comments in #14434 and #14429 for the detailed disscusion.


-- 
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] susiwen8 commented on issue #15584: Custom tooltip with formatter option looks weird

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


   <img width="379" alt="Screen Shot 2021-08-23 at 11 14 27 PM" src="https://user-images.githubusercontent.com/20318608/130472315-2e4f47ef-64bf-4c70-8c74-8d054a6a2f03.png">
   
   Workaround
   
   ```js
                   tooltip: {
                       show: true,
                       trigger: 'axis',
                       formatter: () => '6&lt;Vā‰¤121'
                   },
   ```


-- 
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] liuyuan22 commented on issue #15584: Custom tooltip with formatter option looks weird

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


   > Since ECharts supports the pure HTML string in the formatter, if it contains HTML tags or any other special characters and you hope to display them originally, please manually escape it first. Refer to these comments in #14434 and #14429 for the detailed discussion.
   > 
   > To make it simpler, you could use the provided built-in util `echarts.format.encodeHTML`.
   
   Thanks! Now I get it~


-- 
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] susiwen8 closed issue #15584: Custom tooltip with formatter option looks weird

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


   


-- 
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 #15584: Custom tooltip with formatter option looks weird

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


   Hi! We've received your issue and please be patient to get responded. šŸŽ‰
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that it contains **a minimum reproducible demo** and necessary **images** to illustrate. Otherwise, our committers will ask you to do so.
   
   *A minimum reproducible demo* should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.
   
   You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question.
   
   If you are interested in the project, you may also subscribe to our [mailing list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! šŸµ


-- 
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