问题:柱状图的图例和柱状图颜色在IE10和IE11中拖动时间轴的时候图例和柱状图颜色会发生改变

echarts的渲染是从setOption中开始的,不是从echarts.init()开始

initPapers(a) {
      if (!this.firstDepartmentLoaded) {
        this.myChart = echarts.init(this.$refs.paperNum);
        this.myChart.setOption(
          {
            color: this.colorArr,
            tooltip: {
              trigger: "axis",
              axisPointer: {
                type: "cross",
                label: {
                  backgroundColor: "#6a7985"
                }
              }
            },
            legend: {
              data: this.lengedName,
              right: 30
            },
            grid: {
              left: "3%",
              right: "4%",
              bottom: "3%",
              containLabel: true
            },
            xAxis: {
              axisTick: { show: false },
              splitLine: { show: false },
              axisLine: { lineStyle: { color: "#CFD8DC" } },
              axisLabel: {
                show: true,
                interval: 0,
                rotate: 60,
                textStyle: {
                  color: "#323232",
                  fontSize: 12
                }
              },
              data: this.departmentsOrderName
            },
            yAxis: {
              axisLine: {
                show: false
              },
              axisTick: {
                show: false
              },
              splitLine: {
                show: true,
                lineStyle: {
                  color: "#CFD8DC",
                  width: 1
                }
              }
            },
            series: a
          },
          true
        );
      } else {
        this.myChart.setOption(
          {
            xAxis: {
              data: this.departmentsOrderName
            },
            series: a
          }
        );
      }

最新文章

  1. Kali连接数据库
  2. Oracle 11g XE release2安装与指导
  3. Servlet获取简单验证码
  4. SET ROWCOUNT,SET NOCOUNT
  5. SQL数据库开发知识总结:基础篇
  6. cas单点登出
  7. Ruby自学笔记(一)— 基本概况
  8. 图画(txt等一下)实施开放的默认下载的默认浏览器,而不是(Java文本)
  9. POJ 3177 Redundant Paths - from lanshui_Yang
  10. Linux内核探索之路——关于方法
  11. iOS 之 微信开发流程
  12. JavaBean自动生成get和set方法
  13. 代理IP爬取,计算,发放自动化系统
  14. #Java学习之路——基础阶段二(第七篇)
  15. 关于微博api中发布话题的api问题
  16. 性能测试---CPU内存部分
  17. html5之上的图片处理
  18. Perl CGI编程
  19. ubuntu下mysql源码编译安装
  20. c#无边窗体实现移动的两种方式

热门文章

  1. EXSI宿主机更换硬盘后虚机启动有问题
  2. mysql 8.x 登陆提示 Access denied for user 'root'@'localhost' (using password: YES)
  3. Pycharm有必要改的几个默认设置项以及快捷键
  4. C#.net开发 List与DataTable相互转换
  5. mvc验证码图片生成
  6. 修改NPM默认全局安装路径
  7. [yii\queue\Queue] [10] unknown job (attempt: 1, PID: 31167) is finished with error: yii\base\ErrorException: unserialize(): Error at offset 1922 of 65535 bytes
  8. SmartBinding与kbmMW#3
  9. Arm汇编指令集2
  10. nagios-调用脚本