(cherry picked from commit 953fdfe76f)
Co-authored-by: Victor Marin <36818606+mdvictor@users.noreply.github.com>
This commit is contained in:
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],
|
||||
|
||||
Reference in New Issue
Block a user