apache / apache/echarts

时间轴用splitNumber,出现间距不一致情况

Open
#16,082 4 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version
5.2.2

### Reproduction link
[https://codepen.io/malihui/pen/jOLdBMN](https://codepen.io/malihui/pen/jOLdBMN)
![image](https://user-images.githubusercontent.com/16605318/142380657-1755ebdc-e1b8-487f-bc62-0eecdb5244cf.png)

### Steps to reproduce
配置如下
```
option = {
xAxis: {
type: 'time',
axisLabel: {
formatter: '{yyyy}/{M}/{d}'
},
splitNumber: 3
},
yAxis: {
type: 'value'
},
series: [
{
data: [
['2014-01-07', 0],
['2021-10-30', 2]
],
type: 'line'
}
]
};

```

### What is expected?
时间轴能均匀分隔

### What is actually happening?
时间轴分隔不均

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.