From e5a4d9d1d5d40164839fa9afb19d5e292b6178db Mon Sep 17 00:00:00 2001 From: baraknet Date: Thu, 3 Dec 2015 18:37:56 +0100 Subject: [PATCH 1/2] Commented out debugging printing into console --- src/angular-dygraphs.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/angular-dygraphs.js b/src/angular-dygraphs.js index 5f8243a..8941631 100644 --- a/src/angular-dygraphs.js +++ b/src/angular-dygraphs.js @@ -219,14 +219,14 @@ angular.module("angular-dygraphs", [ }); var legendHeight = element.find('div.legend').outerHeight(true); - console.log("Heights", legendHeight, parent.height(), parent.outerHeight(true), + /*console.log("Heights", legendHeight, parent.height(), parent.outerHeight(true), $(mainDiv).outerHeight(), element.height(), $(legendDiv).height(), - $(legendDiv).outerHeight(true)); + $(legendDiv).outerHeight(true)); */ graph.resize(parent.width(), parent.height() - legendHeight); chartArea = $(chartDiv).offset(); chartArea.bottom = chartArea.top + parent.height() - legendHeight; chartArea.right = chartArea.left + parent.width(); - console.log("Position",chartArea); + //console.log("Position",chartArea); } } }; From fe0a2af9fa67148a5dd2a7e478a53754e2f08f01 Mon Sep 17 00:00:00 2001 From: baraknet Date: Thu, 3 Dec 2015 18:43:38 +0100 Subject: [PATCH 2/2] Update angular-dygraphs.js --- src/angular-dygraphs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/angular-dygraphs.js b/src/angular-dygraphs.js index 8941631..063ba0c 100644 --- a/src/angular-dygraphs.js +++ b/src/angular-dygraphs.js @@ -102,7 +102,7 @@ angular.module("angular-dygraphs", [ scope.highlightCallback = function (event, x, points, row) { if(!scope.options.showPopover) return; - console.log(event, x, points, row); + //console.log(event, x, points, row); var html = "
"; if (typeof moment === "function" && scope.legend !== undefined) { html += moment(x).format(scope.legend.dateFormat); @@ -157,7 +157,7 @@ angular.module("angular-dygraphs", [ popover.height(popoverHeight); popover.animate({left: x + 'px', top: (event.pageY - (popoverHeight / 2)) + 'px'}, 20); - console.log("Moving", {left: x + 'px', top: (event.pageY - (popoverHeight / 2)) + 'px'}) + //console.log("Moving", {left: x + 'px', top: (event.pageY - (popoverHeight / 2)) + 'px'}) }; scope.unhighlightCallback = function (event, a, b) {