How to change Indicator delta mode font size

Hi there, a quick question. I am trying to adjust the font size when using go.Indicator, for example:

fig_gauge.add_trace(go.Indicator(
            mode='delta',
            value=reordered_score_list[p],
            delta={'reference': max(reordered_score_list)},
            number={'font': {'size': 2}}, # <--- Change the font size
        ),
            row=p + 1, col=2) # Place it on the second column in the subplot

However, does not matter how big/small the font size I try, it does not seem to change. Any pointers would be appreciated!

Hi @Peilin ,

If I understand your question, you are about to change the size of delta value.

Instead of putting font size on number, try to set font size on the delta property.

fig_gauge.add_trace(go.Indicator(
            mode='delta',
            value=reordered_score_list[p],
            delta={'reference': max(reordered_score_list),'font': {'size': 2}}, # <--- Change the font size of delta reference
            number={'font': {'size': 2}}, # <--- Change the font size of value
        ),
            row=p + 1, col=2) # Place it on the second column in the subplot
1 Like

Thank you, that was exactly it! :pray: