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

This commit is contained in:
Victor Marin 2022-10-28 09:27:54 +03:00 committed by GitHub
parent bf672f960a
commit 953fdfe76f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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],