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

   Found a great workaround, given a dataset data = [label => 'Label 1', 
imageUrl: 'imageUrl'...] - we can:
   
   ````
   rich: Object.fromEntries(
     data.map((item, index) => [
       `image${index}`,  // Unique key for each item
       {
         height: 15px,
         width: 15px,
         backgroundColor: {
           image: item.imageUrl
         },
       },
     ])
   ),
   ... rest of rich styles defined
   ```
   
   it's not best perfomance scenario but at least each item in your dataset 
will be mapped with a rich index style and will render the image you want


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

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to