diff --git a/public/app/plugins/panel/heatmap/axes_editor.ts b/public/app/plugins/panel/heatmap/axes_editor.ts index 7a77ea718d9..761a0680184 100644 --- a/public/app/plugins/panel/heatmap/axes_editor.ts +++ b/public/app/plugins/panel/heatmap/axes_editor.ts @@ -1,8 +1,6 @@ -import kbn from 'app/core/utils/kbn'; export class AxesEditorCtrl { panel: any; panelCtrl: any; - unitFormats: any; logScales: any; dataFormats: any; yBucketBoundModes: any; @@ -12,7 +10,6 @@ export class AxesEditorCtrl { $scope.editor = this; this.panelCtrl = $scope.ctrl; this.panel = this.panelCtrl.panel; - this.unitFormats = kbn.getUnitFormats(); this.logScales = { linear: 1, @@ -35,10 +32,10 @@ export class AxesEditorCtrl { }; } - setUnitFormat(subItem: any) { - this.panel.yAxis.format = subItem.value; + setUnitFormat = (unit: string) => { + this.panel.yAxis.format = unit; this.panelCtrl.render(); - } + }; } /** @ngInject */ diff --git a/public/app/plugins/panel/heatmap/partials/axes_editor.html b/public/app/plugins/panel/heatmap/partials/axes_editor.html index a89002f0831..aacb122ec77 100644 --- a/public/app/plugins/panel/heatmap/partials/axes_editor.html +++ b/public/app/plugins/panel/heatmap/partials/axes_editor.html @@ -3,11 +3,7 @@
Y Axis
-
-
+
@@ -51,7 +47,7 @@
Buckets
- +
@@ -78,7 +74,7 @@
- +