Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing time on date time X-axis under certain conditions #3483

Closed
sadsunshower opened this issue Nov 11, 2022 · 0 comments · Fixed by #3505
Closed

Missing time on date time X-axis under certain conditions #3483

sadsunshower opened this issue Nov 11, 2022 · 0 comments · Fixed by #3505
Labels
bug Something isn't working

Comments

@sadsunshower
Copy link
Contributor

Description

Hello :)

Under some conditions (mostly related to the width of the chart), the times on the X-axis will be off by one hour. For example, instead of being 23:00, 00:00, 01:00, 02:00 or 23:00, (date), 01:00, 02:00, the X axis labels will be 23:00, 01:00, 02:00, 03:00. The tooltips on the data points still give the correct time.

This may be related to #3466 and #1607.

Steps to Reproduce

Create a time series chart with a date time formatted X axis and a time series spanning ~ 1 day, and adjust the width until the X axis bug appears

Code sandbox with a fixed width where this bug occurs (tested in Chrome): https://codesandbox.io/s/thirsty-ives-ezmmob?file=/src/App.tsx

Expected Behavior

The X axis shows the correct time on labels

Actual Behavior

After a certain point, the X axis is off by approximately one hour

Screenshots

Screenshot of bug

Reproduction Link

https://codepen.io/sadsunshower/pen/QWxpzpd - To see the behaviour, hovering over the point marked 02:00 on the X axis will instead show 01:00 in the tooltip, which is the expected time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant