Skip to content

st.metric treatment of delta=0 #15005

@tilusnet

Description

@tilusnet

Checklist

  • I have searched the existing issues for similar feature requests.
  • I added a descriptive title and summary to this issue.

Summary

Hi,

I would welcome an additional treatment of delta = 0.

Why?

To avoid showing green "up arrow" zero values, or red "down arrow" zero values which are awkward.

How?

st.metric

  • .delta_color(): "normal" (default) - The color is red when the delta is negative, green when positive and grey when zero.
  • .delta_arrow(): "auto" (default) - The arrow direction follows the sign of delta, and "-" (or right arrow?) if delta is zero

Additional Context

No response

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