apache / apache/echarts

Time xAxis, scale = false, dataZoom issue

Open
#13,765 1 comment 0 reactions 1 assignee Claimed by @100pah View on GitHub
bug en
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version
4.9.0

### Steps to reproduce
When the xAxis type is set to 'time', and scale = false for xAxis, the dataZoom slider component starts from '01/01/1970' instead of the given startValue, or the series start.

dataZoom options :
```js
"dataZoom": [
{
"type": "slider",
"startValue": 1603232230000,
"endValue": 1603837030000,
}
]
```
Xaxis has scale : false, min = 1603232230000, max = 1603837030000

![101277091-b9bb6980-37a9-11eb-991f-be31965832ba](https://user-images.githubusercontent.com/26197478/101277294-59c5c280-37ab-11eb-9500-f7e61867d8f8.png)

### What is expected?
DataZoom (slider) should start from xAxis.min to xAxis.max values

### What is actually happening?
Starts from 01/01/1970

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.