Skip to content

Commit

Permalink
Changed colour rules set
Browse files Browse the repository at this point in the history
  • Loading branch information
pikopl committed Oct 8, 2016
1 parent 7d61943 commit 91ed4b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/js/controllers/carPark/carPark.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 91ed4b6

Please sign in to comment.