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 coercion in inferLogDomain #1280

Merged
merged 1 commit into from
Feb 16, 2023
Merged

remove coercion in inferLogDomain #1280

merged 1 commit into from
Feb 16, 2023

Conversation

Fil
Copy link
Contributor

@Fil Fil commented Feb 16, 2023

It is redundant since in the case of a log scale, the values have already been coerced to a Float64Array by

options = coerceType(channels, options, coerceNumbers);

(It's not a huge deal since we call it maybe just once or twice… anyway. Researched with #1279.)

It is redundant since in the case of a log scale, the values have already been coerced to a Float64Array by https://github.com/observablehq/plot/blob/d8378f088fa39d611f3219992ad5e452418765b6/src/scales.js#L306
@Fil Fil requested a review from mbostock February 16, 2023 16:44
@Fil Fil merged commit 37a160f into main Feb 16, 2023
@Fil Fil deleted the fil/remove-log-coercion branch February 16, 2023 16:54
chaichontat pushed a commit to chaichontat/plot that referenced this pull request Jan 14, 2024
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.

2 participants