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

Continous scale fixes 2 #1657

Merged
merged 2 commits into from
Jun 6, 2023
Merged

Continous scale fixes 2 #1657

merged 2 commits into from
Jun 6, 2023

Conversation

jameshadfield
Copy link
Member

See commit messages for details.

Given how minor these changes ended up being I'm happy to merge without review but I'll give it a day or two if anyone would like to take a look 🙏 👀

P.S. Typescript would have been so helpful for this PR (as well as #1655).

@nextstrain-bot nextstrain-bot temporarily deployed to auspice-continous-scale-az6dwn March 27, 2023 02:27 Inactive
Copy link
Member

@corneliusroemer corneliusroemer left a comment

Choose a reason for hiding this comment

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

Tested and it fixes #1654 indeed!

Tested here using logistic growth and hovering over the minimum in the scale: https://auspice-continous-scale-az6dwn.herokuapp.com/ncov/gisaid/europe?c=logistic_growth

@nextstrain-bot nextstrain-bot temporarily deployed to auspice-continous-scale-az6dwn March 28, 2023 01:51 Inactive
Base automatically changed from continous-scale-fixes to master June 6, 2023 20:49
This is very rarely used (note that even datasets without any coloring
have `colorBy="numDate"` due to hardcoded defaults). By removing the
unneeded call to `createLegendBounds` we make it easier to improve
that function.
Previously the creation of legend bounds for continuous scales used
hardcoded minimum (0) and maximum (10,000). This may result in the
first and/or last legend entry having associated bounds which could
never match any values.

Given the various locations this function is called it's easier to
set the min/max as (-)Infinity rather than consider the observed min/max.

Closes #1644
Closes #1654
@jameshadfield
Copy link
Member Author

Rebased onto master

@jameshadfield jameshadfield merged commit 8c53f60 into master Jun 6, 2023
@jameshadfield jameshadfield deleted the continous-scale-fixes-2 branch June 6, 2023 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

BUG: Minima tips not highlighting when hovering over coloring legend
4 participants