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

Fix frequency colors for ordinal scales #1578

Merged
merged 1 commit into from
Oct 21, 2022

Conversation

jameshadfield
Copy link
Member

The underlying bug was a type-inconsistency whereby color-by values can be numeric however the matrix was stored as an Object (where keys are always stringified) and so matrix[numeric_colorBy_value]=undefined. Switching to a Map() allows typed keys and fixes this bug.

Closes #843

The underlying bug was a type-inconsistency whereby color-by values
can be numeric however the matrix was stored as an Object (where keys
are always stringified) and so `matrix[numeric_colorBy_value]=undefined`.
Switching to a Map() allows typed keys and fixes this bug.

Closes #843
@nextstrain-bot nextstrain-bot temporarily deployed to auspice-bug-ordinal-sca-n0fxpc October 20, 2022 21:55 Inactive
@jameshadfield
Copy link
Member Author

Tested using the flu dataset from the original issue. Will merge now so that we can release in time for the next nCoV build which will include (ordinal) RBD Levels

@jameshadfield jameshadfield merged commit 9b6114b into master Oct 21, 2022
@jameshadfield jameshadfield deleted the bug/ordinal-scale-frequency-colors branch October 21, 2022 01:05
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.

Ordinal values are not assigned colors from color ramp in the frequencies panel
2 participants