apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.58k stars 19.62k forks source link

ie8下画柱状图,x、y坐标轴不显示,显示label标签会报参数错误 #9928

Closed Pulset closed 5 years ago

Pulset commented 5 years ago

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

Pulset commented 5 years ago

不好意思,找到问题原因了。是我们自己的库影响到了echarts的库,才导致echarts报错了。