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

always have exactly two/three elements #3782

Merged
merged 2 commits into from
Oct 15, 2023
Merged

always have exactly two/three elements #3782

merged 2 commits into from
Oct 15, 2023

Conversation

luizbarboza
Copy link
Contributor

No description provided.

@luizbarboza luizbarboza changed the title always has exactly three elements always have exactly two/three elements Oct 13, 2023
@@ -30,7 +30,7 @@ If *interpolator* is an array, it represents the scale’s three-element output
const color = d3.scaleDiverging(["blue", "white", "red"]);
```

A diverging scale’s domain must be numeric and must contain exactly three values. The default domain is [0, 0.5, 1].
A diverging scale’s domain must be numeric and must contain exactly three values.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove this? It’s correct.

d3.scaleDiverging().domain() // [0, 0.5, 1]

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, it’s already mentioned above. 👍

@mbostock mbostock merged commit 3f4a2d7 into d3:main Oct 15, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants