Skip to content

Commit

Permalink
Allow variables in axis text (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwapik authored Jan 25, 2024
1 parent f9d3fc1 commit 33994b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/grafana-ui/src/options/builder/axis.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,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
Expand Down

0 comments on commit 33994b4

Please sign in to comment.