Version
v5.4.3
Link to Minimal Reproduction
Steps to Reproduce
option = {
color: ['#3398DB'],
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'shadow'
}
},
grid: {},
xAxis: [
{
type: 'category',
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
}
],
yAxis: [
{
show: true,
type: 'value',
nameLocation: 'end',
nameTextStyle: {
padding: [9, 9, 9, 9],
width: 16,
overflow: 'breakAll',
ellipsis: '***'
},
name: 'Pleasant Goat and Big Big Wolf'
}
],
series: [
{
name: '直接访问',
type: 'bar',
barWidth: '60%',
data: [10, 52, 200, 334, 390, 330, 220]
}
]
};
Current Behavior
Overflowable hide
Expected Behavior
Overflowable hide
Environment
- OS:
- Browser:
- Framework:
Any additional comments?
No response
1条答案
按热度按时间41zrol4v1#
duplicate of #17397 , #16940 , #15429 , #14911
undocumented option nameTruncate works. Thanks to @Jagan-P and @asctrl for discovering it.
Usage is:
nameTruncate: { maxWidth: 60 }
Please close issue if problem solved.