Skip to content

remove coercion in inferLogDomain#1280

Merged
Fil merged 1 commit into
mainfrom
fil/remove-log-coercion
Feb 16, 2023
Merged

remove coercion in inferLogDomain#1280
Fil merged 1 commit into
mainfrom
fil/remove-log-coercion

Conversation

@Fil

@Fil Fil commented Feb 16, 2023

Copy link
Copy Markdown
Contributor

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