From 0efafc50dc0cbda221f5d3a969c972d2ac2ef572 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Tue, 22 Apr 2014 12:01:51 +0200 Subject: [PATCH] Increased resolution for graphite datapoints (maxDataPoints), now equal to panel pixel width. (Closes #5) --- CHANGELOG.md | 2 ++ src/app/panels/graphite/module.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f29414bd6b..27166a40021 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ - InfluxDB enhancement: support for multiple hosts (with retries) and raw queries (Issue #318, thx @toddboom) - Added rounding for graphites from and to time range filters for very short absolute ranges (Issue #320) +- Increased resolution for graphite datapoints (maxDataPoints), now equal to panel pixel width. (Closes #5) + # 1.5.3 (2014-04-17) - Add support for async scripted dashboards (Issue #274) diff --git a/src/app/panels/graphite/module.js b/src/app/panels/graphite/module.js index a9aad456bd2..3602b294895 100644 --- a/src/app/panels/graphite/module.js +++ b/src/app/panels/graphite/module.js @@ -230,7 +230,7 @@ function (angular, app, $, _, kbn, moment, timeSeries) { $scope.updateTimeRange = function () { $scope.range = filterSrv.timeRange(); $scope.rangeUnparsed = filterSrv.timeRange(false); - $scope.resolution = Math.ceil(($(window).width() * ($scope.panel.span / 12)) / 2); + $scope.resolution = Math.ceil($(window).width() * ($scope.panel.span / 12)); $scope.interval = '10m'; if ($scope.range) {