TimeseriesPanel: Fill below to override works with name override (#57728)
This commit is contained in:
@@ -400,8 +400,11 @@ export const preparePlotConfigBuilder: UPlotConfigPrepFn<{
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (customConfig.fillBelowTo) {
|
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 t = indexByName.get(dispName);
|
||||||
const b = indexByName.get(customConfig.fillBelowTo);
|
const b = indexByName.get(fillBelowDispName);
|
||||||
if (isNumber(b) && isNumber(t)) {
|
if (isNumber(b) && isNumber(t)) {
|
||||||
builder.addBand({
|
builder.addBand({
|
||||||
series: [t, b],
|
series: [t, b],
|
||||||
|
|||||||
Reference in New Issue
Block a user