From 2585ad1ddc1e60436881eb979f80980f0cdc7fbf Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Thu, 27 Jan 2022 00:22:37 +0100 Subject: [PATCH] TimeSeries: disable fill when fillBelowTo field is missing (#44498) (#44500) (cherry picked from commit 6533eb92448c6e49d46f51fc3d852d76d715a871) Co-authored-by: Leon Sorokin --- 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 2b0e9bf0da4..645a95c67cd 100644 --- a/packages/grafana-ui/src/components/TimeSeries/utils.ts +++ b/packages/grafana-ui/src/components/TimeSeries/utils.ts @@ -253,9 +253,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; } } }