nani554 opened a new issue #16748: URL: https://github.com/apache/echarts/issues/16748
### Version 5.3.0 ### Link to Minimal Reproduction https://codepen.io/nani554/pen/WNdRBzR ### Steps to Reproduce 1) Create any chart, lets say bar chart and render it in SVG. 2) Have Title whose text(Mon) is similar to one of the labels text(Mon). please refer codepen for chart example: https://codepen.io/nani554/pen/WNdRBzR ### Current Behavior 1) What i need is to click on label text, so i have formed a selector using text value and want to click on label text programatically but its not happening because in dom we have multiple text elements with same text value, which are "Label text" and "Title text". 2) Currently there is no way to form a unique selector as every text is present in text element and its parent in "g" element with its parent as "svg" element. 3) This is the selector im using: selector: `"body svg text:contains('Mon')";` 4) Im using cypress to query selector and do click event. please refer below images for reference. **UI**:  **DOM**:  Soo Currently Im not able to click on label text with that selector. ### Expected Behavior Please suggest me a way for me to form a unique selector for label text or title text or legends. let me know if i can add id or class attributes to text element, so that i can uniqely select that element and do operations on it. Thank you. ### Environment ```markdown - OS: Windows 7 - 10. - Browser: Chrome 99.0.4844.82 (Official Build) (64-bit) - Framework: [email protected] ``` ### Any additional comments? _No response_ -- 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]
