From a3748d4b9710fd0650982ac2800b033f0ef17f74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Thu, 24 Sep 2015 11:36:25 +0200 Subject: [PATCH] fix(singestat): fixed missing sparklines, caused by recent changes to time range handling, fixes #2815 --- public/app/panels/singlestat/singleStatPanel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/panels/singlestat/singleStatPanel.js b/public/app/panels/singlestat/singleStatPanel.js index cb063138310..b04f1c57dcd 100644 --- a/public/app/panels/singlestat/singleStatPanel.js +++ b/public/app/panels/singlestat/singleStatPanel.js @@ -122,8 +122,8 @@ function (angular, app, _, $) { xaxis: { show: false, mode: "time", - min: scope.range.from.getTime(), - max: scope.range.to.getTime(), + min: scope.range.from.valueOf(), + max: scope.range.to.valueOf(), }, grid: { hoverable: false, show: false }, };