mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
TimeSeries: fix fillBelowTo wrongly affecting fills of unrelated series (#41998)
This commit is contained in:
parent
7f3562886e
commit
07a440fd3a
@ -231,13 +231,13 @@ export class UPlotConfigBuilder {
|
||||
// When fillBelowTo option enabled, handle series bands fill manually
|
||||
if (this.bands?.length) {
|
||||
config.bands = this.bands;
|
||||
const keepFill = new Set<number>();
|
||||
const killFill = new Set<number>();
|
||||
for (const b of config.bands) {
|
||||
keepFill.add(b.series[0]);
|
||||
killFill.add(b.series[1]);
|
||||
}
|
||||
|
||||
for (let i = 1; i < config.series.length; i++) {
|
||||
if (!keepFill.has(i)) {
|
||||
if (killFill.has(i)) {
|
||||
config.series[i].fill = undefined;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user