-
Notifications
You must be signed in to change notification settings - Fork 546
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
Color scale look up table? #314
Comments
Refer to chroma.js/src/colors/colorbrewer.js Lines 20 to 59 in b1d13bd
Sorry for the lack of examples in the documentation, but it will hopefully become more interactive in the new documentation. |
You can access a list of all available palettes via Object.keys(chroma.brewer)
// ['OrRd', 'PuBu', 'BuPu', 'Oranges', 'BuGn', 'YlOrBr', 'YlGn', 'Reds', 'RdPu', 'Greens', 'YlGnBu', 'Purples', 'GnBu', 'Greys', 'YlOrRd', 'PuRd', 'Blues', 'PuBuGn', 'Viridis', 'Spectral', 'RdYlGn', 'RdBu', 'PiYG', 'PRGn', 'RdYlBu', 'BrBG', 'RdGy', 'PuOr', 'Set2', 'Accent', 'Set1', 'Set3', 'Dark2', 'Paired', 'Pastel2', 'Pastel1'] as of now, this list will also include lowercase representations for each palette, but this will be fixed in the next release. |
In chroma.js, there are named color palletes or 'scales' such as Viridis, Spectral, RdYlBu (Red, Yellow, Blue), Reds, Greys, etc. I know some of these are based on Color Brewer. However, I do not see a complete look up table in the docs for these names with their colors. How can I know that such acronym would work such as "RdYlBu"?
The text was updated successfully, but these errors were encountered: