apache / apache/echarts

Wrong interval in axisTick when use method

Open
#17,967 4 comments 0 reactions 0 assignees View on GitHub
bug difficulty: easy en topic: axis
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version

5.4.0

### Link to Minimal Reproduction

https://codepen.io/Mykhailo-codepen/pen/gOKzYJj

### Steps to Reproduce

1. Create 7 days x axis starting from Saturday
2. Add one axisTick interval which divides weeks. So interval should be before Monday. For this you need to use method.

### Current Behavior

If Interval one only every time it goes before first bar.
If we have more then one interval it works fine (set intervals on proper places) but adds one extra interval after last bar.

### Expected Behavior

interval depends on method logic only

### Environment

```markdown
Problem in all browsers independent of Framework
```

### Any additional comments?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.