From fdab9f7836511366c1a2f7da29622e661c2decfc Mon Sep 17 00:00:00 2001 From: Thibault Cohen Date: Mon, 29 Jun 2015 16:17:00 -0400 Subject: [PATCH] Fix gauge on dashboard page Change-Id: I445b9a4fc82fffbfac618f68dd5060273222a3cc --- app/assets/sass/temporary.scss | 6 ++++++ app/components/ng-justgage/ng-justgage.js | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/app/assets/sass/temporary.scss b/app/assets/sass/temporary.scss index 40bf178..1f17034 100644 --- a/app/assets/sass/temporary.scss +++ b/app/assets/sass/temporary.scss @@ -190,3 +190,9 @@ bansho-host-services-list .subcomponent__live { } + +// AngularJS + +just-gage tspan { + font: 500 1em "Roboto", sans-serif !important; +} diff --git a/app/components/ng-justgage/ng-justgage.js b/app/components/ng-justgage/ng-justgage.js index b8bf364..122e94b 100644 --- a/app/components/ng-justgage/ng-justgage.js +++ b/app/components/ng-justgage/ng-justgage.js @@ -24,6 +24,13 @@ angular.module("ngJustGage", []) min: scope.min, max: scope.max, title: scope.title, + gaugeWidthScale: 0.2, + levelColors: ["#E84C3D", "#E84C3D", "#E84C3D", "#E84C3D", "#E84C3D", + "#E84C3D", "#E84C3D", "#E84C3D", "#E84C3D", "#E84C3D", + "#F9A13B", "#F9A13B", "#F9A13B", "#F9A13B", "#F9A13B", + "#F9A13B", "#F9A13B", "#F9A13B", "#F9A13B", + "#81A854"], + levelColorsGradient: false, value: scope.value, donut: true, symbol: '%'