You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "messiasdias (via GitHub)" <gi...@apache.org> on 2024/03/12 18:43:20 UTC

Re: [I] How to dynamically add images to the rich text of the label on the node? [echarts]

messiasdias commented on issue #15948:
URL: https://github.com/apache/echarts/issues/15948#issuecomment-1992319293

   
   
   ```javascript
   yAxis: {
       //...
       axisLabel: {
         formatter: function (value) {
            //Here I look for rich via numeric key and
            // returning <value> <icon>
           return value + ' {0|}';
         },
   
         rich: {
            //Here I define the rich via numeric key and it worked
            0 : {
               height: 25,
               align: 'center',
               backgroundColor: {
                 image: "<image_path>"
               },
              //...
          }
          }
       },
     },
   ```


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

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