ı am trying to put a label on tiles based on a “CHANGE” or “COUNTY” item as shown below. I couldnt achieve it. Below is my sample code.
I tried with plotlyexpress or go method with the advice shown on:[Labels inside Counties for a map] - looks like it only works for figure factory since scatter method is only avaialble for that one.
Any help wil lbe appreicatd.
fig = px.choropleth(stat_data, geojson=geo_json_data, color="CHANGE", locations="COUNTY", featureidkey="properties.COUNTY", projection="mercator", color_continuous_scale=px.colors.diverging.RdYlGn, color_continuous_midpoint=2 ) fig.update_geos(fitbounds="locations", visible=False) fig.show()