Vertical display:
let option = {
xAxis:{
//文字样式
axisLabel: {
show: true,
textStyle: {
color: '#595C61'
},
formatter:function(value){
return value.split("").join("\n");
}
}
}
}
Tilt the display:
let option = {
xAxis:{
//文字样式
axisLabel: {
show: true,
textStyle: {
color: '#595C61'
},
rotate:45
}
}
}
Omission display:
let option = {
xAxis:{
//文字样式
axisLabel: {
show: true,
textStyle: {
color: '#595C61'
},
formatter:function(value){
if(value.length > 6){
return `${value.slice(0,4)}...`;
}
return value;
}
}
}
}