Add background color to streamlit metric

I have a streamlit metric (python) -


col1.markdown("#### Average score: {0} category".format(selected_usertype))
col1.metric(label = "(last 45 days)".format(selected_usertype), value = float(df_selected_score["averagescore"]))

Is there a way to set a background color to the metric displayed?

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.