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

Remove custom logic for determining which X axis ticks to display #1868

Merged
merged 2 commits into from
Oct 7, 2024

Conversation

greg-does-weather
Copy link
Collaborator

What does this PR do? 🛠️

When we were building the temperature chart, we originally implemented logic to only show the even-numbered hours on the X axis. However, we bumped into a lot of weird behavior with that, so we opted to just let Chart.js figure it out. That seemed to work pretty well.

However, for the hourly precipitation chances and humidity charts, we left in that "only evens" logic. This PR removes that logic so that these two charts also behave like the temperature chart.

Copy link
Contributor

github-actions bot commented Oct 7, 2024

This PR modifies theme Javascript or CSS assets but does not update the theme libraries file. Did you mean to update the appropriate version information in the libraries file?

Copy link
Collaborator

@partly-igor partly-igor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great and seems to fix, thank you!

@greg-does-weather greg-does-weather enabled auto-merge (squash) October 7, 2024 21:32
Copy link
Contributor

github-actions bot commented Oct 7, 2024

This PR modifies theme Javascript or CSS assets but does not update the theme libraries file. Did you mean to update the appropriate version information in the libraries file?

@greg-does-weather greg-does-weather merged commit 5140445 into main Oct 7, 2024
17 of 19 checks passed
@greg-does-weather greg-does-weather deleted the mgwalker/1766-chart-x-axes branch October 7, 2024 21:52
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.

Visualization datapoint labels cut off.
2 participants