This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Allow autoMinMax for percent percentunit types #24177
Labels
area/datasource/frontend
area/units
gh-discussions
A label used for bulk-migration of FRs/ERs to discussions
What would you like to be added:
Remove the full scale min and max for the percent and percentunit units.
Why is this needed:
BarGauge panel is more readable when the range is not fixed for min=0 and max=100%. For example when the values are around 1.0% the bar gauge is unreadable.
Same problem for the spark line of the Stat panel. I have a stat panel for a metric where the value is usually 1%, and small deviation is significant. The spark line is kind of flat because the value is low. I can't simply set min and max because it can shoot up to 90% occasionally.
https://github.com/grafana/grafana/blob/master/packages/grafana-data/src/field/fieldOverrides.ts#L160-L175
The above section forces the min=0 and max=100 for precent or max=1 for percentunit when min and/or max is not set. I think it's not necessary. Users can enter 0 and 100 if they want this behavior.
The text was updated successfully, but these errors were encountered: