diff --git a/public/app/plugins/panel/graph/axes_editor.html b/public/app/plugins/panel/graph/axes_editor.html index 5dba3d0a87f..fe2541eb627 100644 --- a/public/app/plugins/panel/graph/axes_editor.html +++ b/public/app/plugins/panel/graph/axes_editor.html @@ -13,7 +13,10 @@
- +
diff --git a/public/app/plugins/panel/graph/module.ts b/public/app/plugins/panel/graph/module.ts index de7a863dcb8..9821720218e 100644 --- a/public/app/plugins/panel/graph/module.ts +++ b/public/app/plugins/panel/graph/module.ts @@ -305,6 +305,7 @@ export class GraphCtrl extends MetricsPanelCtrl { for (const series of this.seriesList) { series.applySeriesOverrides(this.panel.seriesOverrides); + // Always use the configured field unit if (series.unit) { this.panel.yaxes[series.yaxis - 1].format = series.unit; } @@ -378,6 +379,7 @@ export const plugin = new PanelPlugin(null) .useFieldConfig({ standardOptions: [ FieldConfigProperty.DisplayName, + FieldConfigProperty.Unit, FieldConfigProperty.Links, // previously saved as dataLinks on options ], })