Closed FirstVertex closed 1 week ago
not-a-bug, nameTruncate is for the axis name, which you don't even have. What you want is yAxis.axisLabel.overflow - Demo 📌 please close issue if problem solved.
Sorry I didn't know about that option! Thank you for the explanation. Have a niiiiiice day 😃
Version
5.5.1
Link to Minimal Reproduction
Echarts playground link
Steps to Reproduce
nameTruncate
option.Current Behavior
The label was not truncated according to the maxWidth input. When the label is long, only the last few characters are visible, which is an awkward way to identify the data.
Expected Behavior
Expect
nameTruncate
option to work as described in the docs. Expect that it should shownameTruncate.maxWidth
characters, and if the string is longer, it should show the ellipsis. This way, the user will be able to read the first part of the name, which they will more easily recognize than the last part of the name.Environment
Any additional comments?
Thank you. Much love for echarts ❤️