From 91ed4b6f813562a78d9a743229e3733d290999ac Mon Sep 17 00:00:00 2001 From: Piotr Kopajczyk Date: Sun, 9 Oct 2016 01:21:16 +0200 Subject: [PATCH] Changed colour rules set --- src/js/controllers/carPark/carPark.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/controllers/carPark/carPark.js b/src/js/controllers/carPark/carPark.js index 62d4884..6e9b08e 100644 --- a/src/js/controllers/carPark/carPark.js +++ b/src/js/controllers/carPark/carPark.js @@ -40,15 +40,15 @@ angular.module('app') //prepare chart var carParkLoad = {}; carParkLoad.value = Math.round(((latestEntry.carPark.capacity - latestEntry.freePlaceAmount) / latestEntry.carPark.capacity) * 100); - if (carParkLoad.value >= 0 && carParkLoad.value < 70){ + if (carParkLoad.value >= 0 && carParkLoad.value < 80){ carParkLoad.color = "success"; carParkLoad.font = "none"; carParkLoad.chartColor = $scope.app.color.success; - }else if (carParkLoad.value >= 70 && carParkLoad.value < 90){ + }else if (carParkLoad.value >= 80 && carParkLoad.value < 99){ carParkLoad.color = "warning"; carParkLoad.font = "warning"; carParkLoad.chartColor = $scope.app.color.warning; - }else{ //carParkLoad.value >= 90 + }else{ //carParkLoad.value >= 99 carParkLoad.color = "danger"; carParkLoad.font = "times-circle"; carParkLoad.chartColor = $scope.app.color.danger;