mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
datatrails: fix: propagate unit to breakdown graphs (#82176)
fix: propagate unit to breakdown graphs
This commit is contained in:
parent
b8f7230dee
commit
a439ee46bf
@ -196,6 +196,7 @@ export function buildAllLayout(options: Array<SelectableValue<string>>, queryDef
|
||||
}
|
||||
|
||||
const expr = queryDef.queries[0].expr.replace(VAR_GROUP_BY_EXP, String(option.value));
|
||||
const unit = queryDef.unit;
|
||||
|
||||
children.push(
|
||||
new SceneCSSGridItem({
|
||||
@ -215,6 +216,7 @@ export function buildAllLayout(options: Array<SelectableValue<string>>, queryDef
|
||||
})
|
||||
)
|
||||
.setHeaderActions(new SelectLabelAction({ labelName: String(option.value) }))
|
||||
.setUnit(unit)
|
||||
.build(),
|
||||
})
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user