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-scale-cmocean? #71

Closed
mbostock opened this issue Jul 5, 2016 · 5 comments
Closed

d3-scale-cmocean? #71

mbostock opened this issue Jul 5, 2016 · 5 comments

Comments

@mbostock
Copy link
Member

mbostock commented Jul 5, 2016

http://matplotlib.org/cmocean/

At the very least it would be nice to have some approximations using d3.interpolateRgbBasis as I did for ColorBrewer in d3-scale-chromatic.

@veltman
Copy link

veltman commented Jul 22, 2016

How about a generic d3-scale-colormap module? It could include cmocean and others could be added as appropriate (e.g. http://peterkovesi.com/projects/colourmaps/). I can get it started if that would be useful.

@mbostock
Copy link
Member Author

mbostock commented Jul 22, 2016

I think it is best to have separate smaller modules than to try to put everything in one module. That makes it possible for them to be maintained independently and to have different implementations (e.g., hard-coded ramps vs. continuous interpolators).

@mbostock
Copy link
Member Author

I’ve moved the color scales to d3-scale-chromatic.

@rben01
Copy link

rben01 commented Jun 14, 2020

I agree with this issue, I would definitely love to see the cmocean colors integrated into d3.

@Fil
Copy link
Member

Fil commented Jun 14, 2020

The discussion continues at d3/d3-scale-chromatic#27

@d3 d3 locked as resolved and limited conversation to collaborators Jun 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

4 participants