diff --git a/packages/grafana-ui/src/components/uPlot/config/UPlotScaleBuilder.ts b/packages/grafana-ui/src/components/uPlot/config/UPlotScaleBuilder.ts index 98bc6301da3..9de444b9be5 100644 --- a/packages/grafana-ui/src/components/uPlot/config/UPlotScaleBuilder.ts +++ b/packages/grafana-ui/src/components/uPlot/config/UPlotScaleBuilder.ts @@ -39,8 +39,8 @@ export class UPlotScaleBuilder extends PlotConfigBuilder { : {}; // uPlot's default ranging config for both min & max is {pad: 0.1, hard: null, soft: 0, mode: 3} - let softMinMode: Range.SoftMode = softMin == null ? 3 : softMin === 0 ? 1 : 2; - let softMaxMode: Range.SoftMode = softMax == null ? 3 : softMax === 0 ? 1 : 2; + let softMinMode: Range.SoftMode = softMin == null ? 3 : 1; + let softMaxMode: Range.SoftMode = softMax == null ? 3 : 1; const rangeConfig: Range.Config = { min: {