Skip to content

Plot.normalizeX and Plot.mapX have different structure #479

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

Closed
mbostock opened this issue Aug 3, 2021 · 0 comments · Fixed by #494
Closed

Plot.normalizeX and Plot.mapX have different structure #479

mbostock opened this issue Aug 3, 2021 · 0 comments · Fixed by #494
Labels
enhancement New feature or request

Comments

@mbostock
Copy link
Member

mbostock commented Aug 3, 2021

I was confused because I tried to do Plot.normalizeX(basis, options), which is similar to Plot.mapX(reducer, options), but it didn’t work! Instead you need to do Plot.normalizeX({basis, ...options}). Maybe it’d be nice to support both forms just in case you don’t read the documentation as closely as you should.

@mbostock mbostock added the enhancement New feature or request label Aug 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant