Skip to content

Conversation

@freshollie
Copy link

Brief Information

This pull request is in the type of:

  • bug fixing
  • new feature
  • others

What does this PR do?

Supports formatting time axis with specific timezone. Very likely that this PR won't be merged since we are adding a new lib @date-fns/tz however, I believe the authors should consider. Provided here incase others want to use :)

Fixed issues

Details

Before: What was the problem?

Timezone on the time scale charts were only possible to set with UTC or device local time. It wasn't possible to change this format outside the library because the axis tick intervals were lost. Doing this within the lib is very simple and the change is non breaking (unless you count the new lib as breaking)

After: How does it behave after the fixing?

image Axis ticks work as expected when zooming in (even over DST changes) image

Document Info

One of the following should be checked.

  • This PR doesn't relate to document changes
  • The document should be updated later
  • The document changes have been made in apache/echarts-doc#xxx

Misc

Security Checking

  • This PR uses security-sensitive Web APIs.

ZRender Changes

  • This PR depends on ZRender changes (ecomfe/zrender#xxx).

Related test cases or examples to use the new APIs

N.A.

Merging options

  • Please squash the commits into a single one when merging.

Other information

@echarts-bot
Copy link

echarts-bot bot commented Jan 14, 2026

Thanks for your contribution!
The community will review it ASAP. In the meanwhile, please checkout the coding standard and Wiki about How to make a pull request.

Please DO NOT commit the files in dist, i18n, and ssr/client/dist folders in a non-release pull request. These folders are for release use only.

⚠️ MISSING DOCUMENT INFO: Please make sure one of the document options are checked in this PR's description. Search "Document Info" in the description of this PR. This should be done either by the author or the reviewers of the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants