apache / apache/echarts

Possibility to set specific timezone for time axis

Open
#14,453 27 comments 50 reactions 0 assignees View on GitHub
en new-feature topic: axis-time
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### What problem does this feature solve?
In our case, we have many clients arround the world. We want have the ability to show their data using their timezone. Actually, Echarts use GMT dates to set xAxis intervals labels and current browser timezone for date format.

We correctly set the correct timezone in formatter but, for intervals, we have already the problem of GMT.

It's a really important feature for us.

### What does the proposed API look like?
An option, in xAxis to set timezone should be great to fix the problem :

```
xAxis : {
type : 'time',
timezone : 'Europe/Paris', // with that, all xAxis times are manipulated using this timestamp
}
```

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.