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/04/20 19:12:27 UTC

[GitHub] [echarts] asciimancer opened a new issue #14726: tooltip formatter does not render html

asciimancer opened a new issue #14726:
URL: https://github.com/apache/echarts/issues/14726


   ### Version
   5.1.0
   
   ### Steps to reproduce
   tooltip: {
       formatter: (params) => {
           return params.map(param =>{
               return (
                   <span>{param.seriesName}</span>
               )
           })
       }
   }
   
   ### What is expected?
   Renders array of span html elements. 
   
   ### What is actually happening?
   Nothing is rendered. Have to fall back on using string formatting to create this, i.e. return `<span>${param.seriesName}</span>`. This works for really simple solutions, but for the full code of what I need to do, this becomes impractical very quickly. 
   
   ---
   Thank you! Echarts is quite amazing : )
   
   <!-- 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:
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] asciimancer commented on issue #14726: tooltip formatter does not render html

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


   Thanks! 


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


[GitHub] [echarts] echarts-bot[bot] commented on issue #14726: tooltip formatter does not render html

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


   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 **you have posted enough image to demo your request**. 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 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.

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 #14726: tooltip formatter does not render html

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


   I tested it with the following code, it works.
   
   ```js
   formatter() {
      const h1= document.createElement('h1')
      h1.innerText = 'Hello'
      const h2= document.createElement('h1')
      h2.innerText = 'Hello2'
      return [h1, h2]
   }
   ```


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


[GitHub] [echarts] echarts-bot[bot] commented on issue #14726: tooltip formatter does not render html

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


   @asciimancer Please provide a demo for the issue either with https://codepen.io/Ovilia/pen/dyYWXWM , https://www.makeapie.com/editor.html or https://codesandbox.io/s/mystifying-bash-2uthz.


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


[GitHub] [echarts] asciimancer closed issue #14726: tooltip formatter does not render html

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


   


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