You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2019/06/03 07:26:09 UTC

[GitHub] [incubator-echarts] farzer opened a new issue #10604: legend and label 'formatter' support html template

farzer opened a new issue #10604: legend and label 'formatter' support html template
URL: https://github.com/apache/incubator-echarts/issues/10604
 
 
   ### What problem does this feature solve?
   the appearance of legend and label can be customized
   
   ### What does the proposed API look like?
   ```
   {
     legend: {
       formatter: (obj) => `<span style="color: red;"}>${obj.data.name}</span>`
     }
   }
   ```
   
   <!-- 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


With regards,
Apache Git Services

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