Version
5.4.3
Link to Minimal Reproduction
Steps to Reproduce
- Create a radar chart
- Set borders to options.radar.axisName using borderColor and borderWidth properties to be able to visualize the issue
- Set a value for options.radar.axisName.width (https://echarts.apache.org/en/option.html#radar.axisName.width)
Current Behavior
The width of the radar's text box is not updated. This prevent us to use the truncate feature on radar's axisName for example.
Expected Behavior
The width of the radar's text box should be updated according to the options.radar.axisName.width parameter (https://echarts.apache.org/en/option.html#radar.axisName.width)
Environment
- OS: macOS Ventura 13.5
- Browser: Google Chrome
- Framework: Official editor (no framework needed)
Any additional comments?
No response
1条答案
按热度按时间ryevplcw1#
duplicate of #17319
workaround
axisName: { formatter: (value) => { return value.length>12 ? value.substring(0, 12)+'...' : value; }
.See also alternative solutions in #13551