-
Notifications
You must be signed in to change notification settings - Fork 19.8k
[Bug] 柱状图堆叠后无法平滑移动 #18998
Copy link
Copy link
Closed as not planned
Labels
bugpendingWe are not sure about whether this is a bug/new feature.We are not sure about whether this is a bug/new feature.staleInactive for a long time. Will be closed in 7 days.Inactive for a long time. Will be closed in 7 days.
Metadata
Metadata
Assignees
Labels
bugpendingWe are not sure about whether this is a bug/new feature.We are not sure about whether this is a bug/new feature.staleInactive for a long time. Will be closed in 7 days.Inactive for a long time. Will be closed in 7 days.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Version
5.4.2
Link to Minimal Reproduction
https://codesandbox.io/s/thirsty-christian-qkmdyn?file=/src/index.js
Steps to Reproduce
option = {
xAxis: {
type: 'category',
data: ['A', 'B', 'C', 'D', 'E', 'F','E','G','H','I']
},
yAxis: {
type: 'value'
},
series: [
{
type: 'bar',
stack: '堆叠',
data: [1,3,4,5,1,5,6,1,3,4,5,1,5,6]
},
{
type: 'bar',
stack: '堆叠',
data: [-1,-3,-4,-5,-1,-5,-6,-1,-3,-4,-5,-1,-5,-6]
}
],
dataZoom:[{
type: 'slider',
minValueSpan: 6,
maxValueSpan: 6,
}],
};
Current Behavior
由于需要设置堆叠效果,所以type需使用‘category’, 但是在设置了dataZoom里进行左右移动的时候, 只能一格一格滑动,不能平滑的移动, 看了下例子,如果使用type:'value'的话滑动是比较平滑的。
Expected Behavior
期望能同时满足堆叠及平滑左右移动效果,否则看起来会有卡顿视觉
Environment
Any additional comments?
No response