Skip to content

format_func for st.metric #6951

@jrieke

Description

@jrieke

Many elements support a format_func parameter, which styles the output shown on screen. We could add this to st.metric as well. Note that it's not as important since st.metric obviously doesn't have a return value. More of a nice to have e.g. when passing in raw numbers and you want to add a unit.


Community voting on feature requests enables the Streamlit team to understand which features are most important to our users.

If you'd like the Streamlit team to prioritize this feature request, please use the 👍 (thumbs up emoji) reaction in response to the initial post.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature:st.metricRelated to the `st.metric` elementtype:enhancementRequests for feature enhancements or new features

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions