-
Notifications
You must be signed in to change notification settings - Fork 19.8k
Stacked Bar with dataZoom regression (4.1.0) #8935
Copy link
Copy link
Closed
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/
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Fields
Give feedbackNo fields configured for issues without a type.