Skip to content

[Bug] 柱状图堆叠后无法平滑移动 #18998

@ciuciuy

Description

@ciuciuy

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

- OS:
- Browser:
- Framework:

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpendingWe are not sure about whether this is a bug/new feature.staleInactive for a long time. Will be closed in 7 days.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions