Announcing Dash Bio 1.0.0 🎉 : a one-stop-shop for bioinformatics and drug development visualizations.

How to create interval legend on choropleth graph?

Hi,

is it possible to create a choropleth with intervals visualization? I’ve searched that is possible but only working with USA area but I have another region.

I have something like this:

But I want to have a legend like this in red rectangle:

Code for my graph is:

fig = px.choropleth(dff,
                        locations="Województwo",
                        geojson=pl_json,
                        color=color,
                        color_continuous_scale=px.colors.sequential.Blues,
                        scope="europe")
    
fig.update_geos(fitbounds="locations", visible=False)
fig.update_layout(height=600)

I would be grateful for any help.