echarts icon indicating copy to clipboard operation
echarts copied to clipboard

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

Open FollowTheCause4 opened this issue 3 years ago • 2 comments

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

FollowTheCause4 avatar Oct 16 '22 02:10 FollowTheCause4

@FollowTheCause4 It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗

TRANSLATED

TITLE

[Bug] The interval in axisTick controls the hidden anomalies of tick marks

BODY

Version

5.3.0

Link to Minimal Reproduction

No response

Steps to Reproduce

When using interval, use true or false to control the display and hide of tick marks, the actual situation is different from the preset situation axisTick: { length: 50, interval: index=> { const checkLst = [true, false, false, true, false, false, false, false] return checkLst[index] } } image

Current Behavior

interval: true, tick marks appear, false, tick marks do not appear

Expected Behavior

true or false can directly and correctly control the display and hide of the tick marks

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

When the number of true is small or in the first place, there will be abnormal scenarios image true unknown appears incorrect image

echarts-bot[bot] avatar Oct 16 '22 02:10 echarts-bot[bot]

This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.

github-actions[bot] avatar Oct 15 '24 21:10 github-actions[bot]

This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!

github-actions[bot] avatar Oct 23 '24 21:10 github-actions[bot]