freshollie opened a new pull request, #21475:
URL: https://github.com/apache/echarts/pull/21475

   <!-- Please fill in the following information to help us review your PR more 
efficiently. -->
   
   ## Brief Information
   
   This pull request is in the type of:
   
   - [ ] bug fixing
   - [x] 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
   
   - #14453 
   
   
   ## 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?
   
   <img width="1422" height="894" alt="image" 
src="https://github.com/user-attachments/assets/cfa3e95b-04cd-41c0-9f8a-00e7f4a272b2";
 />
   Axis ticks work as expected when zooming in (even over DST changes)
   <img width="1422" height="894" alt="image" 
src="https://github.com/user-attachments/assets/57d477ac-d2df-4983-a32c-e8d84d3be4c7";
 />
   
   ## 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.
   
   <!-- PLEASE CHECK IT AGAINST: 
<https://github.com/apache/echarts/wiki/Security-Checklist-for-Code-Contributors>
 -->
   
   ### 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
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to