echarts X-axis name overlaps with Y-axis tick labels

echarts X-axis name overlaps with Y-axis tick labels

Problem graph:
insert image description here

Solution:

 xAxis: [
          {
    
    
          		//加  \n  让名称换换行
               name: '\n\n\n时间',
               type: 'category',
               data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
           }
       ],

The solved graph:
insert image description here

Guess you like

Origin blog.csdn.net/weixin_45729937/article/details/129501124