xAxis: {
type: 'category',
data: ['宜城', '襄城', '樊城', '襄州', '高新区'],
axisLabel:{
formatter: function(value) {
return value.split('').join('\n')
},
}
},
效果图:
xAxis: {
type: 'category',
data: ['宜城', '襄城', '樊城', '襄州', '高新区'],
axisLabel:{
formatter: function(value) {
return value.split('').join('\n')
},
}
},
效果图: