From b154e1be2943d340df7eba0cd508eef2d28fb42d Mon Sep 17 00:00:00 2001 From: blavenie <benoit.lavenier@e-is.pro> Date: Wed, 14 Jun 2017 15:47:33 +0200 Subject: [PATCH] [fix] member count graph has bad X axis --- www/plugins/graph/js/controllers/currency-controllers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/plugins/graph/js/controllers/currency-controllers.js b/www/plugins/graph/js/controllers/currency-controllers.js index aaf200e9b..af172d4f3 100644 --- a/www/plugins/graph/js/controllers/currency-controllers.js +++ b/www/plugins/graph/js/controllers/currency-controllers.js @@ -425,7 +425,7 @@ function GpCurrencyMembersCountController($scope, $controller, $q, $state, $tran $scope.times = result.times; // Choose a date formatter, depending on the blocks period - var blocksPeriod = result.times[result.blocks.length-1] - result.times[0].medianTime; + var blocksPeriod = result.times[result.blocks.length-1]- result.times[0]; var dateFormat; if (blocksPeriod < 15778800/* less than 6 months*/) { dateFormat = $filter('formatDateShort'); -- GitLab