Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/cydrobolt/polr.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChaoyi Zha <summermontreal@gmail.com>2017-01-27 01:03:07 +0300
committerChaoyi Zha <summermontreal@gmail.com>2017-01-27 01:03:07 +0300
commit301e63cbbd6bc82c9a6f9e12b8db5f74dfbbde5d (patch)
treef6c13a9cb83a41d38ddb170ee5d7ca61c5ce8d99
parentfdc16a100220ea880c1a4e0305184656c8b625be (diff)
Update graph colours for stats
-rw-r--r--public/js/StatsCtrl.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/public/js/StatsCtrl.js b/public/js/StatsCtrl.js
index f21a246..ecd1486 100644
--- a/public/js/StatsCtrl.js
+++ b/public/js/StatsCtrl.js
@@ -14,7 +14,11 @@ polr.controller('StatsCtrl', function($scope, $compile) {
data: {
datasets: [{
label: 'Clicks',
- data: $scope.dayData
+ data: $scope.dayData,
+ pointHoverBackgroundColor: "rgba(75,192,192,1)",
+ pointHoverBorderColor: "rgba(220,220,220,1)",
+ backgroundColor: "rgba(75,192,192,0.4)",
+ borderColor: "rgba(75,192,192,1)",
}]
},
options: {
@@ -86,7 +90,7 @@ polr.controller('StatsCtrl', function($scope, $compile) {
normalizeFunction: 'polynomial'
}]
},
- onRegionTipShow: function(e, el, code){
+ onRegionTipShow: function(e, el, code) {
el.html(el.html()+' (' + (parsedCountryData[code] || 0) + ')');
}
});