Still make sure we round to two digits in memory graph y scale

This commit is contained in:
Johannes Zellner
2022-10-14 21:41:48 +02:00
parent 76c2a978c9
commit 9829a0b906
+1 -1
View File
@@ -791,7 +791,7 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
}
};
if (format) options.scales.y.ticks.callback = function (value) { return (formatDivisor ? (value/formatDivisor) : value) + ' ' + format; };
if (format) options.scales.y.ticks.callback = function (value) { return (formatDivisor ? (value/formatDivisor) : value).toFixed(2) + ' ' + format; };
if (max) options.scales.y.max = max;
var ctx = $(canvasId).get(0).getContext('2d');