selunders commented on issue #18242:
URL: https://github.com/apache/echarts/issues/18242#issuecomment-2237348771

   I ran into the same issue, ended up appending zero-width spaces (\u200B)
   
   ```js
   const mySeries = myData.map((data, index) => ({
     name: `${data.name}${'\u200B'.repeat(index)}`,
     ... // rest of series info
   })
   ```
   If you wanted to be extra careful to prevent duplicates:
   ```js
     name: `${data.name.replace(/\u200B/g, "")}${`\u200B`.repeat(index)}
   ```
   Modifying @helgasoft 's [example from 
earlier](https://github.com/apache/echarts/issues/18242#issuecomment-1967090865):
   
![image](https://github.com/user-attachments/assets/f7f1a8c8-e286-4cff-b16c-3db06239ec4c)
   
   


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