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/29 21:25:14 UTC

[GitHub] [incubator-echarts] ggregoire commented on issue #10564: axisLabel.renderMode: 'html'

ggregoire commented on issue #10564: axisLabel.renderMode: 'html'
URL: https://github.com/apache/incubator-echarts/issues/10564#issuecomment-497114855
 
 
   @sxmpasch Thanks for the quick reply.
   
   In my case, the urls are not static. I get them dynamically with the value of the label.
   
   So I would need something like
   
   ```javascript
   axisLabel: {
     formatter: '{a|}{value}',
     rich: value => ({
       a:{
         backgroundColor: {
           image: `https://myapp.com/assets/images/${value}.png`,
         },
         height: 40,
         color: 'red',
       }
     })
   }
   ```
   
   Which is not possible if I read the doc correctly.
   
   Please let me know if you have any other workaround. :)

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