echarts的渲染问题
2024-09-03 14:17:47
问题:柱状图的图例和柱状图颜色在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
}
);
}
最新文章
- Kali连接数据库
- Oracle 11g XE release2安装与指导
- Servlet获取简单验证码
- SET ROWCOUNT,SET NOCOUNT
- SQL数据库开发知识总结:基础篇
- cas单点登出
- Ruby自学笔记(一)— 基本概况
- 图画(txt等一下)实施开放的默认下载的默认浏览器,而不是(Java文本)
- POJ 3177 Redundant Paths - from lanshui_Yang
- Linux内核探索之路——关于方法
- iOS 之 微信开发流程
- JavaBean自动生成get和set方法
- 代理IP爬取,计算,发放自动化系统
- #Java学习之路——基础阶段二(第七篇)
- 关于微博api中发布话题的api问题
- 性能测试---CPU内存部分
- html5之上的图片处理
- Perl CGI编程
- ubuntu下mysql源码编译安装
- c#无边窗体实现移动的两种方式
热门文章
- EXSI宿主机更换硬盘后虚机启动有问题
- mysql 8.x 登陆提示 Access denied for user 'root'@'localhost' (using password: YES)
- Pycharm有必要改的几个默认设置项以及快捷键
- C#.net开发 List与DataTable相互转换
- mvc验证码图片生成
- 修改NPM默认全局安装路径
- [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
- SmartBinding与kbmMW#3
- Arm汇编指令集2
- nagios-调用脚本