-
Notifications
You must be signed in to change notification settings - Fork 187
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
d3.extentDiverging? #132
Comments
Fil
added a commit
to d3/d3-scale
that referenced
this issue
Jun 24, 2020
…extent and a pivot (default: 0) examples: - d3.scaleDiverging().domain([-10, 145]).domain() // [-10, 0, 145] - d3.scaleDiverging().domain([89, 145], 100).domain() // [89, 100, 145] - d3.scaleDiverging().domain([112, 145], 100).domain() // [100, 100, 145] - d3.scaleDiverging().domain([-112, -145], -100).domain() // [-100, -100, -145] solves d3/d3-array#132
It was a bit odd that the pivot for extentDiverging would be 0, while it is 0.5 for the default domain of scaleDiverging. Also, this might be served better by a more intelligent scaleDiverging.domain based on domain.length: ie see d3/d3-scale#215 for a proposal |
Not planning on doing this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It’d be nice to have a variant of d3.extent that returns a three-element array with zero in the middle for use with d3.scaleDiverging.
The text was updated successfully, but these errors were encountered: