瀏覽代碼

heatmap: changed name of heatmap data format option, #8054

Torkel Ödegaard 8 年之前
父節點
當前提交
787fea90b9
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 2 2
      public/app/plugins/panel/heatmap/axes_editor.ts
  2. 1 1
      public/app/plugins/panel/heatmap/heatmap_ctrl.ts

+ 2 - 2
public/app/plugins/panel/heatmap/axes_editor.ts

@@ -26,8 +26,8 @@ export class AxesEditorCtrl {
     };
 
     this.dataFormats = {
-      'Timeseries': 'timeseries',
-      'ES histogram': 'es_histogram'
+      'TS': 'timeseries',
+      'TS Pre-bucketed': 'tsbuckets'
     };
   }
 

+ 1 - 1
public/app/plugins/panel/heatmap/heatmap_ctrl.ts

@@ -135,7 +135,7 @@ export class HeatmapCtrl extends MetricsPanelCtrl {
     let xBucketSize, yBucketSize, heatmapStats, bucketsData;
     let logBase = this.panel.yAxis.logBase;
 
-    if (this.panel.dataFormat === 'es_histogram') {
+    if (this.panel.dataFormat === 'tsbuckets') {
       heatmapStats = this.parseHistogramSeries(this.series);
       bucketsData = elasticHistogramToHeatmap(this.series);