I try to have a truncated axis name for yAxis in echarts without success. Even setting the overflow option to truncated, which should render ellipsis a the end has no effect, same for setting a short width. The setting looks like this:
nameTextStyle:{
overflow : 'truncate',
align:'left',
ellipsis :'...',
}
example can be found here
>Solution :
nameTruncate would work:
yAxis: {
type: "value",
name: "very very very very very very long axis name",
nameTruncate: {
maxWidth: 100,
ellipsis: "..."
}
},
which results into:
