TimeSeries: disable fill when fillBelowTo field is missing (#44498)

This commit is contained in:
Leon Sorokin 2022-01-26 17:06:11 -06:00 committed by GitHub
parent 5148250366
commit 6533eb9244
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}
}
}