TimeseriesPanel: Fill below to override works with name override (#57728) (#57800)

(cherry picked from commit 953fdfe76f)

Co-authored-by: Victor Marin <36818606+mdvictor@users.noreply.github.com>
This commit is contained in:
Grot (@grafanabot)
2022-10-28 02:46:35 -04:00
committed by GitHub
co-authored by Victor Marin
parent 0b27b6a8c2
commit 23b791c234
@@ -400,8 +400,11 @@ export const preparePlotConfigBuilder: UPlotConfigPrepFn<{
}
if (customConfig.fillBelowTo) {
const fillBelowToField = frame.fields.find((f) => f.name === customConfig.fillBelowTo);
const fillBelowDispName = getFieldDisplayName(fillBelowToField!, frame, allFrames);
const t = indexByName.get(dispName);
const b = indexByName.get(customConfig.fillBelowTo);
const b = indexByName.get(fillBelowDispName);
if (isNumber(b) && isNumber(t)) {
builder.addBand({
series: [t, b],