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

pull/57726/head^2
Victor Marin 3 years ago committed by GitHub
parent bf672f960a
commit 953fdfe76f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      packages/grafana-ui/src/components/TimeSeries/utils.ts

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

Loading…
Cancel
Save