PanelConfig: Interpolate template vars for Axis label (#78086)

This commit is contained in:
Leon Sorokin 2023-11-14 10:17:06 -06:00 committed by GitHub
parent 3b9886830e
commit 11bbf83f93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,6 +43,7 @@ export function addAxisConfig(
defaultValue: '',
settings: {
placeholder: 'Optional text',
expandTemplateVars: true,
},
showIf: (c) => c.axisPlacement !== AxisPlacement.Hidden,
// Do not apply default settings to time and string fields which are used as x-axis fields in Time series and Bar chart panels