From e1f75013590fe4569e01c8ce990ae999acbd70b8 Mon Sep 17 00:00:00 2001 From: Kristina Date: Fri, 22 Sep 2023 07:50:29 -0500 Subject: [PATCH] Explore: Anchor to 0 in timeseries' stacked displays (#75251) Anchor to 0 for stacked explore graphs --- public/app/features/explore/Graph/exploreGraphStyleUtils.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/app/features/explore/Graph/exploreGraphStyleUtils.ts b/public/app/features/explore/Graph/exploreGraphStyleUtils.ts index ba72dc9365e..224ece64100 100644 --- a/public/app/features/explore/Graph/exploreGraphStyleUtils.ts +++ b/public/app/features/explore/Graph/exploreGraphStyleUtils.ts @@ -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