apache / apache/echarts

[Bug] minorTicks spacing for time series has unexpected behavior for the right and left-most intervals.

Open
#18,422 7 comments 7 reactions 0 assignees View on GitHub
bug en pending
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version

5.4.3

### Link to Minimal Reproduction

https://codepen.io/petersonzilli/pen/VwGgQgb

### Steps to Reproduce

1. You can start from the "Dynamic Data + Time Axis" example
2. then add the xAxis.minorTick = true configuration.
3. (optionally) add the xAxis.minorSplit = true to the config too.
4. then start to look into the right and left sides of the generated graph and see the not expected behavior for ticks/split lines of a time series.

### Current Behavior

the number of intervals is made constant for the graph. there are always 5 minorTicks/minorSplits. thus the time ranges expressed by the ticks vary across the graph.

### Expected Behavior

For a time series, one can expect that the minorTicks/minorSplits express allways the same time range, and the space between the minorTicks/minorSplits does not vary across the graph

### Environment

```markdown
- OS: MacOS
- Browser: Chrome 111.0.5563.110
- Framework: pure javascript and echarts
```

### 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.