Fix numberType in plots
authorJoachim Breitner <mail@joachim-breitner.de>
Sat, 30 May 2015 10:57:06 +0000 (12:57 +0200)
committerJoachim Breitner <mail@joachim-breitner.de>
Sat, 30 May 2015 10:57:06 +0000 (12:57 +0200)
site/js/gipeda.js

index b2e8c85..f77d1fa 100644 (file)
@@ -478,11 +478,11 @@ function setupChart () {
          }
        };
 
-    var type;
+    var numberType;
     if (data.benchmarkSettings && data.benchmarkSettings[benchName]) {
-        type = data.benchmarkSettings[benchName].type;
+        numberType = data.benchmarkSettings[benchName].numberType;
     }
-    if (type == "integral" || type == "small integral") {
+    if (numberType == "integral" || numberType == "small integral") {
         plot_options.yaxis.minTickSize = 1;
         plot_options.yaxis.tickDecimals = 0;
     }