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

diverging.domain([x0, x1][, pivot]) sets the domain from a 2-element extent & pivot #215

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Fil
Copy link
Member

@Fil Fil commented Jun 24, 2020

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

…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
@Fil Fil requested a review from mbostock July 27, 2020 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

1 participant