'Is there a parameter in plotly express to grey out the values that have been deselected..?

This is my code:

fig = px.choropleth(dff_1, locations = 'District_Proper', geojson = dis_geojson, color = 'counts',       
                    featureidkey = "properties.NAME_2", hover_data = ['State'])
fig.update_geos(fitbounds = 'locations', visible = False)
fig.update_layout(margin={"r":0,"t":0,"l":0,"b":0})  

I am in need of help where the deselected value that I have obtained needs to be in grey colour.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source