From 6533eb92448c6e49d46f51fc3d852d76d715a871 Mon Sep 17 00:00:00 2001 From: Leon Sorokin Date: Wed, 26 Jan 2022 17:06:11 -0600 Subject: [PATCH] TimeSeries: disable fill when fillBelowTo field is missing (#44498) --- packages/grafana-ui/src/components/TimeSeries/utils.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/grafana-ui/src/components/TimeSeries/utils.ts b/packages/grafana-ui/src/components/TimeSeries/utils.ts index c5fb304cc53..650e748a284 100644 --- a/packages/grafana-ui/src/components/TimeSeries/utils.ts +++ b/packages/grafana-ui/src/components/TimeSeries/utils.ts @@ -272,9 +272,12 @@ export const preparePlotConfigBuilder: UPlotConfigPrepFn<{ series: [t, b], fill: undefined, // using null will have the band use fill options from `t` }); - } - if (!fillOpacity) { - fillOpacity = 35; // default from flot + + if (!fillOpacity) { + fillOpacity = 35; // default from flot + } + } else { + fillOpacity = 0; } } }