提示:[ECharts] DEPRECATED: textStyle hierarchy in label has been removed since 4.0. All textStyle properties are configured in label directly now.
前言
控制台提示:
[ECharts] DEPRECATED: textStyle hierarchy in label has been removed since 4.0. All textStyle properties are configured in label directly now.
提示:以下是本篇文章正文内容,下面案例可供参考
警告是因为 echarts 改版 配置项调整
一、 调整前
axisLabel: {
show: false,
margin: 20,
textStyle: {
color: 'rgba(255, 255, 255, 0.5)',
fontSize: fitPx(10)
},
}
二、调整后
1.引入库
代码如下(示例):
axisLabel: {
interval: 0,
color: 'rgba(255, 255, 255, 0.5)',
fontSize: fitPx(10)
},
总结
类似提示都是 这样处理