mirror of
https://github.com/grafana/grafana.git
synced 2025-02-12 00:25:46 -06:00
TimeseriesPanel: Fill below to override works with name override (#57728)
This commit is contained in:
parent
bf672f960a
commit
953fdfe76f
@ -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…
Reference in New Issue
Block a user