Skip to content

Configurable color encoding of missing values #3631

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

Closed
cpsievert opened this issue Mar 12, 2019 · 1 comment
Closed

Configurable color encoding of missing values #3631

cpsievert opened this issue Mar 12, 2019 · 1 comment

Comments

@cpsievert
Copy link

If null values are provided to a colorscale attribute (e.g., color/z), plotly.js uses gray for color encoding, for example:

https://codepen.io/cpsievert/pen/BbmYoQ
https://community.plot.ly/t/how-to-change-colors-for-na-values-to-gray-in-a-choropleth-map/15746/4

The problem is, there doesn't seem to be an official to control this in a way that is decoupled from color/z values themselves. Ideally, you would be able to control this from the colorscale definition, perhaps like this https://codepen.io/cpsievert/pen/xBPYZM

@alexcjohnson
Copy link
Collaborator

Duplicate of #3035 / #975 where a separate attribute nancolor has been proposed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants