Hi @Juanouo I think you can use the method described in this post: transform the nans to a numerical value outside of your value range and define a custom colorscale with a specific color (for example gray) for the values which used to be nan. Please see also the tutorial on colorscales to see how to define a custom colorscale.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| How to fill null values with other color in choropleth_mapbox? | 1 | 2944 | May 11, 2022 | |
| Showing "No Data" in choropleth_mapbox() | 0 | 436 | September 16, 2022 | |
| How to change colors for NA values to gray in a choropleth map? | 4 | 9475 | November 20, 2018 | |
| Choroplethmapbox with discrete colors (in clientside Dash callback) | 1 | 1130 | May 10, 2021 | |
| In a Choropleth map, how do I color in countries with a value of 'inf'? | 1 | 397 | March 30, 2024 |