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

d3.scaleDiverging #142

Closed
mbostock opened this issue Jun 16, 2018 · 0 comments
Closed

d3.scaleDiverging #142

mbostock opened this issue Jun 16, 2018 · 0 comments

Comments

@mbostock
Copy link
Member

Like d3.scaleSequential, but requires that the domain has three values, and maps to a diverging interpolator such as d3.interpolateRdBu.

color = d3.scaleDiverging(d3.interpolateRdBu).domain([-1, 0, 1])
mbostock added a commit that referenced this issue Jun 16, 2018
mbostock added a commit that referenced this issue Jun 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant