Bladeren bron

fix(graph): fixed graph issue with axes mode set to series and picking Max value, fixes #6926

Torkel Ödegaard 9 jaren geleden
bovenliggende
commit
8feaef20e0

+ 0 - 1
public/app/features/dashboard/submenu/submenu.ts

@@ -15,7 +15,6 @@ export class SubmenuCtrl {
               private $location) {
     this.annotations = this.dashboard.templating.list;
     this.variables = this.variableSrv.variables;
-    console.log(this.variables);
   }
 
   annotationStateChanged() {

+ 1 - 1
public/app/plugins/panel/graph/axes_editor.ts

@@ -36,7 +36,7 @@ export class AxesEditorCtrl {
     this.xAxisStatOptions =  [
       {text: 'Avg', value: 'avg'},
       {text: 'Min', value: 'min'},
-      {text: 'Max', value: 'min'},
+      {text: 'Max', value: 'max'},
       {text: 'Total', value: 'total'},
       {text: 'Count', value: 'count'},
       {text: 'Current', value: 'current'},

+ 1 - 1
public/app/plugins/panel/graph/data_processor.ts

@@ -166,7 +166,7 @@ export class DataProcessor {
         return [
           {text: 'Avg', value: 'avg'},
           {text: 'Min', value: 'min'},
-          {text: 'Max', value: 'min'},
+          {text: 'Max', value: 'max'},
           {text: 'Total', value: 'total'},
           {text: 'Count', value: 'count'},
         ];