Metric progress bar fallback color should be unique #172235
Labels
Feature:Lens
Feature:MetricVis
Metric visualization feature
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
Describe the feature:
When using the Lens Metric chart with color ranges, where the primary value of the metric is below the max value, the
getColor
function returns undefined and defaults to the same color as the metric background. This ends up looking like extra padding on the left side of the metric.Thus there is little indication to the user that the value is actually beyond the color range domain.
Code is here:
kibana/src/plugins/chart_expressions/expression_metric/public/components/metric_vis.tsx
Lines 218 to 231 in 99f5192
Describe a specific use case for the feature:
I think a possible solution to this is to default to the min/max value if the value is out of the color range. This would look like this...
Another option would be to make the default bar color show as a darker default different than the Metric background. This would look like...
We could build this default color selection into the editor panel.
CC: @markov00 @gvnmagni @drewdaemon
The text was updated successfully, but these errors were encountered: