Repository navigation
Description
One-line summary [问题简述]
stacked bar charts exceed zoom limit in 4.1.0
Version & Environment [版本及环境]
- ECharts version [ECharts 版本]: 4.1.0
- Browser version [浏览器类型和版本]: Firefox 62.0b17
- OS Version [操作系统类型和版本]: Windows 10
Expected behaviour [期望结果]
See this fiddle, loading echarts 3.2.2
Expected (3.2.2): http://jsfiddle.net/cj31rtpf/1208/
Actual (4.1.0): http://jsfiddle.net/cj31rtpf/1209/
ECharts option [ECharts配置项]
option = {
title: {
text: '世界人口总量',
subtext: '数据来自网络'
},
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'shadow'
}
},
legend: {
data: ['2011年', '2012年']
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
yAxis: {
type: 'value',
boundaryGap: [0, 0.01]
},
xAxis: {
type: 'category',
data: ['巴西','印尼','美国','印度','中国','世界人口(万)']
},
dataZoom: [
{
"type": "slider",
"xAxisIndex": 0,
"backgroundColor": "rgba(255,255,255,0)",
"fillerColor": "rgba(255,255,255,0.4)",
"zoomOnMouseWheel": false,
"showDetail": false
},
{
"type": "slider",
"yAxisIndex": 0,
"zoomOnMouseWheel": false,
"showDetail": false
}
],
series: [
{
name: '2011年',
type: 'bar',
stack: 'overall',
data: [18203, 23489, 29034, 104970, 131744, 630230]
},
{
name: '2012年',
type: 'bar',
stack: 'overall',
data: [19325, 23438, 31000, 121594, 134141, 681807]
}
]
};Other comments [其他信息]
See this fiddle, loading echarts 3.2.2
Expected (3.2.2): http://jsfiddle.net/cj31rtpf/1208/
Actual (4.1.0): http://jsfiddle.net/cj31rtpf/1209/
Activity
Ovilia commentedon Aug 30, 2018
目前定位到问题是在 2fddc7f 这个 commit 中引起的
jarben commentedon Sep 5, 2018
Perhaps another instance of this bug:

Code:
jarben commentedon Sep 10, 2018
Any thoughts around when this is going to be fixed & released @Ovilia ?
Ovilia commentedon Oct 12, 2018
@100pah says that dataZoom of stacked bars were not supported yet but somehow it worked before. He will fix it later.
jarben commentedon Oct 12, 2018
Thanks for looking at this @Ovilia !
15531400827 commentedon Feb 28, 2019
@Ovilia 问一下问题还不能解决吗? 问题都抛出半年了把。。。。。。