在网上看到的error代码
axisLabel: {
show: true,
textStyle: {
color: '#FFFFFF',
fontSize: '38',//字体大小
},
},
正确的代码
axisLabel: {
show: true,
textStyle: {
color: '#FFFFFF',
// fontSize: '38',//字体大小
},
fontSize: 20,//字体大小
},
fontSize和textStyle在同一层级就OK了