You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "kim1124 (via GitHub)" <gi...@apache.org> on 2023/05/02 10:46:14 UTC

[GitHub] [echarts] kim1124 opened a new issue, #18584: [Feature] Request improvement to apply CSS class to AxisLabel > rich > image.

kim1124 opened a new issue, #18584:
URL: https://github.com/apache/echarts/issues/18584

   ### What problem does this feature solve?
   
   You can add an image to the label using the axisLabel > rich property, but it would provide a better development experience if you could apply a CSS class.
   
   In most projects, images are often managed with CSS classes, so it would be nice to be able to apply CSS classes or Icon-fonts.
   
   ### What does the proposed API look like?
   
   ```javascript
   
   axisLabel: {
     rich: {
       backgroundColor: {
         image: {
           class: ‘icon-class-name’,
         }
       }
     },
     formatter (value) {
       return `{icon| ${value}}`
     }
   }
   ```


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

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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