From 6079c41157144cce0127fea7dab04e12c23bf3b3 Mon Sep 17 00:00:00 2001 From: sgotre Date: Wed, 23 Mar 2016 18:46:01 +0100 Subject: [PATCH] Add backgroundColor and labelColor for Donut I would need these both here. They were not documented at morris.js (PR for doc update here: https://github.com/morrisjs/morris.js/pull/654) Take care, i have not tested this --- src/lib/directives/donutChart.directive.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/directives/donutChart.directive.js b/src/lib/directives/donutChart.directive.js index f0c8c5c..d3f70f1 100644 --- a/src/lib/directives/donutChart.directive.js +++ b/src/lib/directives/donutChart.directive.js @@ -30,7 +30,7 @@ angular.module("angular.morris-chart").directive('donutChart', /*@ngInject*/function(morrisChartService) { // List of known option keys for donutChart according to morris.js docs: // http://morrisjs.github.io/morris.js/donuts.html - var OPTION_KEYS = ['data', 'colors', 'formatter', 'resize']; + var OPTION_KEYS = ['data', 'colors', 'formatter', 'resize', 'backgroundColor', 'labelColor']; return { restrict: 'A', @@ -63,4 +63,4 @@ } } }) -})(); \ No newline at end of file +})();