apache / apache/echarts

type: 'time' xAxis auto interval optimize

Open
#16,102 1 comment 1 reaction 0 assignees View on GitHub
bug en pending topic: axis-time waiting-for: community
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version
5.2.2

### Steps to reproduce
1 https://echarts.apache.org/examples/zh/editor.html?c=line-simple
2
```
option = {
xAxis: {
type: 'time'
},
yAxis: {
type: 'value'
},
series: [
{
data: [
[1637722125000, 0],
[1637723925000, 0]
],
type: 'line'
}
]
};
```
3 Shrink the window so that chart-container width is less than 450px

### What is expected?
time xAxis calculate interval according to chart width

### What is actually happening?
time xAxis label overlap
![image](https://user-images.githubusercontent.com/30454841/143185318-de746b0e-8bf9-4ecf-a9a3-56c01d16e750.png)

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.