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

[stats] Fix tooltip showing as undefined for first tick #11150

Merged
merged 3 commits into from
Apr 29, 2024

Conversation

xconverge
Copy link
Contributor

@xconverge xconverge commented Apr 29, 2024

Adjust the offset logic to match the (already working) camera stats and fixes the first tooltip showing with a title of "undefined" instead of the time

Copy link

netlify bot commented Apr 29, 2024

Deploy Preview for frigate-docs canceled.

Name Link
🔨 Latest commit 390093d
🔍 Latest deploy log https://app.netlify.com/sites/frigate-docs/deploys/662fb1daaef6360008de7da6

@xconverge xconverge changed the title Fix tooltip showing as undefined for first tick [stats] Fix tooltip showing as undefined for first tick Apr 29, 2024
@NickM-27
Copy link
Collaborator

NickM-27 commented Apr 29, 2024

this doesn't work on mobile, the first item is clipped which is why it returns when val == 1. I think we should adjust the logic to keep the val == 1 but only apply it to mobileOnly

Screen Shot 2024-04-29 at 06 26 40 AM

@xconverge
Copy link
Contributor Author

xconverge commented Apr 29, 2024

@NickM-27 I removed the offsetX, even with removing the first tick, the X axis labels werent lining up correctly with the data being shown, even in your screenshot (if you use the tooltip to hover)

This looks good to me now for both desktop and mobile

Screenshot 2024-04-29 at 7 40 02 AM

@NickM-27 NickM-27 merged commit 5bc9f9a into blakeblackshear:dev Apr 29, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants