ggregoire commented on issue #10564: axisLabel.renderMode: 'html' URL: https://github.com/apache/incubator-echarts/issues/10564#issuecomment-497127497 @sxmpasch I made it work by * using the `formatter` callback function to access the current value * generating a style for each value ```javascript axisLabel: { formatter: value => `{${value}|} ${value}`, rich: { ...(values.reduce((obj, value) => { obj[value] = { backgroundColor: { image: `https://myapp.com/assets/images/${value}.png` }, height: 20, } return obj }, {})), }, } ``` --- Keeping the issue open in case someone wants to implement the `renderMode html`. ;)
---------------------------------------------------------------- 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]
