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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to