fig = px.choropleth(ts_short, geojson=counties, locations='FIPS', color='5/10/20', color_continuous_scale="Inferno", range_color=(dmin, dmax), scope="usa" )
ts_short is a Pandas dataframe with two columns: FIPS provides location codes, and 5/10/20 provides values.
But the values column is not linear, it was processed through a gamma function that boosts small values. So the numbers shown in the legend are not accurate. The top and the bottom remain true, but the lower numbers need to be pushed up a bit.
Is there a way to provide a list of labels or something that could override the numbers displayed on the legend?
Related issue - again legend control: the string printed at the top of the legend is the name of the column. I tried to override it like this:
fig.update_layout( legend_title_text='daily values' )
…but it makes no difference. How to override the text at the top of the legend?