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/05/28 17:31:33 UTC
[GitHub] [incubator-echarts] ggregoire opened a new issue #10564:
axisLabel.renderMode: 'html'
ggregoire opened a new issue #10564: axisLabel.renderMode: 'html'
URL: https://github.com/apache/incubator-echarts/issues/10564
### What problem does this feature solve?
Right now it's impossible to format the `axisLabel` in html.
Example:
```javascript
formatter: value => {
return `<div class="wrapper">
<div class="logo">
<img src="...">
</div>
<span>${value}</span>
</div>`
```
This doesn't work currently.
### What does the proposed API look like?
Like for `tooltip`:
```javascript
axisLabel: {
renderMode: 'html',
formatter: value => {
return `<div class="wrapper">
<div class="logo">
<img src="...">
</div>
<span>${value}</span>
</div>`
}
```
<!-- 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