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);