Skip to content

[Bug] axisTick中的interval控制刻度线的显隐异常 #17773

@FollowTheCause4

Description

@FollowTheCause4

Version

5.3.0

Link to Minimal Reproduction

No response

Steps to Reproduce

在使用interval时,使用true or false 控制刻度线的显隐,实际出现情况与预设情况不同
axisTick: {
length: 50,
interval: index=> {
const checkLst = [true, false, false,true, false, false, false, false]
return checkLst[index]
}
}
image

Current Behavior

interval:为true,刻度线出现,为false,刻度线不出现

Expected Behavior

true or false 可以直接且正确的控制刻度线的显隐

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

当true的数量较少或者在首位的时候,会出现异常场景
image
true的未知出现的不正确
image

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions