echarts-bot[bot] commented on issue #19023: URL: https://github.com/apache/echarts/issues/19023#issuecomment-1686449734
@wyzhang0401 It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗 <details><summary><b>TRANSLATED</b></summary><br> **TITLE** The grid. containLabel = true How to get the width of a class of histograms **BODY** ### What problem does this feature solve? The desired function: Click on a column of the histogram to obtain the horizontal pixel coordinates of the midpoint of the column. Now I want to combine a category width, barGap, barCategoryGap, column index and other information to obtain the horizontal pixel coordinates of the column midpoint. If there are multiple categories, the width of a category can be obtained by subtracting the horizontal pixel coordinates of the midpoints of the two categories, but if there is only one category, it cannot be obtained. The following problems exist: 1. After setting grid.containLabel = true, how to get the width of a category in the histogram 2. [Example](https://echarts.apache.org/examples/zh/editor.html?code=PYBwLglsB2AEC8sDeAoWsDmAnCATAXMmurAMYxgCGE0AMpQEYCmanoWFgK5MA0x6LJgDMwhAEwAGYgF8-6MMGAtIIQqhKwOEDBiZZCAckoAPCAG cDckifMAFYDTB61_EmACeIJobMALSrjAAO4GrtIyVoK60ATIssTGAIKmZi4auJRUhADaAEQAsjC5PLC5ACrcxaUA6ky4VeW-nA0AYjgNAMqZnZzQuQC6EcTuyeZq8ehmehBMqbDZ6iTQlAC23qVdg sWuHl6EuQyUWNvpmZQ5AKwlkiUAzABsJQCMEs-vsDewACyD6BNEGmWa32AGFKFsrPJPOsDkcTiQMll5l9riUvu90Xd3mIxM9frBpINwigVu4Qf4sGAAHQwAAUBlILAgpAA1pZYAYpjhZuzaUwAG 5MaBgACUCAAfACyDAzEomFSWMAMHzBcKRcRyNAzGBkFyZmYAHKrXiwPWzACSMSYxhKQPWSRSADVwdwSvyXesRk6PQSELABUKwBqZTqQBBjKw_aTyUdqZrBZSysBbOHWLSkKbpharcYCSVsg7zM6WK7YF 6ix7-ur0JrtbAhBAsNraMIdYhoxS4zAE2AkymIyx04WzJbcNbCBJZBzCtADNXpVqdVNNbgWyIo2TO1T43pe8nU4OkMPR-PYJOSgYKkw58Rg1q5QqlbSwwOSg2m2A12ASsuYKvWz-TAr l-AC077Nq26rSCKQA&_source=echarts-doc-preview) How to get the width of a tooltip shadow ### What does the proposed API look like? How to get the width of a category of the histogram after setting grid.containLabel = true </details> -- 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]
