From c90a8d744fec4d560c2295d36c8341c097057661 Mon Sep 17 00:00:00 2001 From: Josef Citrine Date: Tue, 3 May 2016 23:30:34 +0100 Subject: [PATCH] Applied the pony.fm colour to the chart --- public/templates/tracks/stats.html | 2 +- resources/assets/scripts/app/controllers/track-stats.coffee | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/public/templates/tracks/stats.html b/public/templates/tracks/stats.html index 032e339b..595b9bd6 100644 --- a/public/templates/tracks/stats.html +++ b/public/templates/tracks/stats.html @@ -5,6 +5,6 @@

Plays over time

+ chart-labels="playsLabels" chart-legend="true" chart-series="series" chart-colors="colours">
diff --git a/resources/assets/scripts/app/controllers/track-stats.coffee b/resources/assets/scripts/app/controllers/track-stats.coffee index d2cf6fad..f697a904 100644 --- a/resources/assets/scripts/app/controllers/track-stats.coffee +++ b/resources/assets/scripts/app/controllers/track-stats.coffee @@ -41,6 +41,7 @@ module.exports = angular.module('ponyfm').controller 'track-stats', [ $scope.playsLabels = labelArray $scope.playsData = cumArray + $scope.colours = ['#B885BD'] $scope.series = ['Plays'] $scope.totalSelected = true