低版本echarts的升级到新版5.4.0的echarts浏览器预警和报错信息

新版5.4.0的echarts浏览器预警和报错信息

[ECharts] DEPRECATED: ‘normal’ hierarchy in itemStyle has been removed since 4.0. All style properties are configured in itemStyle directly now.

在这里插入图片描述

因为normal层被移除,问题代码如下图所示

itemStyle: {
   
   normal: {
   color:'rgba(3,134,226,0.36)'}      
},
                
//改成
itemStyle: {
   
   color:'rgba(3,134,226,0.36)'
},

二、[ECharts] DEPRECATED: barBorderRadius is deprecated, use borderRadius instead.

barBorderRadius: [2, 2, 0, 0],
    //改成
borderRadius: [2, 2, 0, 0],

三、[ECharts] DEPRECATED: label.emphasis has been changed to emphasis.label since 4.0

label: {
   
     show: false
     // normal: {show: false},
     // emphasis: {show: false}
},

四、hoverAnimation is deprecated, use emphasis.scale instead.

// hoverAnimation: false,
emphasis:{
   
    scale:false
},

五、[ECharts] DEPRECATED: textStyle hierarchy in axisLabel has been removed since 4.0. All textStyle properties are configured in axisLabel directly now.

自4.0以来,axisLabel中的textStyle层次结构已被删除。现在所有的textStyle属性都直接在axisLabel中配置了。

axisLabel: {
   
            show: true,
            textStyle: {
    color: '#fff' }
          },
 //改成
     axisLabel: {
   
            show: true,
            color: '#fff',
          },         

其实只要去翻译下,就大概知道了这些警告是什么意思了

相关推荐

  1. vue3 + ts + vite 支持版本浏览器

    2023-12-13 12:44:06       38 阅读
  2. Echarts

    2023-12-13 12:44:06       64 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2023-12-13 12:44:06       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2023-12-13 12:44:06       106 阅读
  3. 在Django里面运行非项目文件

    2023-12-13 12:44:06       87 阅读
  4. Python语言-面向对象

    2023-12-13 12:44:06       96 阅读

热门阅读

  1. 总结MySQL 的一些知识点:MySQL 运算符

    2023-12-13 12:44:06       69 阅读
  2. Windows安装卸载MySQL

    2023-12-13 12:44:06       81 阅读
  3. adb的使用

    2023-12-13 12:44:06       52 阅读
  4. 【python】PDF转长图

    2023-12-13 12:44:06       72 阅读
  5. Python中的元组

    2023-12-13 12:44:06       61 阅读