前端

echarts5.0+与4.0的一个区别,

出现警告:[ECharts] DEPRECATED: textStyle hierarchy in axisLabel has been removed since 4.0. All textStyle properties are configured in axisLabel directly now.

只需要修改以下代码

axisLabel: {

textStyle: {

color: '#999',

},

}

修改后

axisLabel: {

color: '#999',

}

警告就没有了,其实就是属性设置简化了