Explore: Anchor to 0 in timeseries' stacked displays (#75251)

Anchor to 0 for stacked explore graphs
This commit is contained in:
Kristina
2023-09-22 07:50:29 -05:00
committed by GitHub
parent ac98197132
commit e1f7501359
@@ -40,11 +40,13 @@ export function applyGraphStyle(config: FieldConfig, style: ExploreGraphStyle, m
custom.drawStyle = GraphDrawStyle.Line;
custom.stacking.mode = StackingMode.Normal;
custom.fillOpacity = 100;
custom.axisSoftMin = 0;
break;
case 'stacked_bars':
custom.drawStyle = GraphDrawStyle.Bars;
custom.stacking.mode = StackingMode.Normal;
custom.fillOpacity = 100;
custom.axisSoftMin = 0;
break;
default: {
// should never happen