Closed Pulset closed 5 years ago
echarts 4.2.1在ie8下画柱状图,x、y坐标轴不显示,显示label标签会报参数错误
兼容ie8
option = { xAxis: [ { type: 'category', data: ['2012', '2013', '2014', '2015', '2016', '2017', '2018'] } ], yAxis: { type: 'value' }, series: [ { name: '>=', type: 'bar', label: { show: true }, stack:'area0', data: [320, 332, 301, 334, 390, 390, 390] }, { name: '<=', type: 'bar', label: { show: true }, stack:'area0', data: [220, 182, 191, 234, 290, 1, 14] } ] }
已经引用了兼容ie8的echarts,但在ie8下标轴、label标签不显示,把option中的label属性删除后,能显示柱状图
ECharts version;ECharts 版本: {4.2.1}
[x] It happens only on certain browsers or operating systems. 对于特定浏览器或操作系统才会出现的问题,请提供相应环境信息:{ie8}
不好意思,找到问题原因了。是我们自己的库影响到了echarts的库,才导致echarts报错了。
General Questions
Issue Type
Issue Details
echarts 4.2.1在ie8下画柱状图,x、y坐标轴不显示,显示label标签会报参数错误
Expected Behavior
兼容ie8
Current Behavior
echarts 4.2.1在ie8下画柱状图,x、y坐标轴不显示,显示label标签会报参数错误
Online Example
option = { xAxis: [ { type: 'category', data: ['2012', '2013', '2014', '2015', '2016', '2017', '2018'] } ], yAxis: { type: 'value' }, series: [ { name: '>=', type: 'bar', label: { show: true }, stack:'area0', data: [320, 332, 301, 334, 390, 390, 390] }, { name: '<=', type: 'bar', label: { show: true }, stack:'area0', data: [220, 182, 191, 234, 290, 1, 14] } ] }
Topics
Anything Else We Need to Know
已经引用了兼容ie8的echarts,但在ie8下标轴、label标签不显示,把option中的label属性删除后,能显示柱状图
Environment
ECharts version;ECharts 版本: {4.2.1}
[x] It happens only on certain browsers or operating systems. 对于特定浏览器或操作系统才会出现的问题,请提供相应环境信息:{ie8}