From f551ba339b77c4927ba8be3fb77a6f15a1b3134e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20Hano=C4=9Flu?= Date: Thu, 13 Sep 2018 19:02:56 +0300 Subject: [PATCH] Define global tresholds for setOptions --- src/angularjs-gauge.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/angularjs-gauge.js b/src/angularjs-gauge.js index 7d8ee35..b749d95 100644 --- a/src/angularjs-gauge.js +++ b/src/angularjs-gauge.js @@ -327,7 +327,7 @@ scope.labelOnly = angular.isDefined(scope.labelOnly) ? scope.labelOnly : defaults.labelOnly; scope.foregroundColor = angular.isDefined(scope.foregroundColor) ? scope.foregroundColor : defaults.foregroundColor; scope.backgroundColor = angular.isDefined(scope.backgroundColor) ? scope.backgroundColor : defaults.backgroundColor; - scope.thresholds = angular.isDefined(scope.thresholds) ? scope.thresholds : {}; + scope.thresholds = angular.isDefined(scope.thresholds) ? scope.thresholds : defaults.thresholds; scope.fractionSize = angular.isDefined(scope.fractionSize) ? scope.fractionSize : defaults.fractionSize; var gauge = new Gauge(element, scope);