About echarts X-axis coordinate display name too long problem

xAxis: {// x-axis parameter configuration
type: 'category',
Data: [],
axisTick: {
alignWithLabel: to true,
},
axisLine: {
the lineStyle: {
Color: '# 9c9c9c',
},
},
AxisLabel: {
/ / axis tick label settings.
Show: to true,
interval The: 0,
Formatter: function (value) {// the key code
var value RES =
IF (res.length>. 7) {
RES res.substring = (0,. 6) + '..'
}
return RES
}
}
},

This article Source of inspiration: https://blog.csdn.net/qq_42477147/article/details/99726811

Guess you like

Origin www.cnblogs.com/xiaonanxun/p/11758378.html
Recommended