Skip to content

Commit

Permalink
Add backgroundColor and labelColor for Donut
Browse files Browse the repository at this point in the history
I would need these both here. They were not documented at morris.js (PR for doc update  here: morrisjs/morris.js#654)  

Take care, i have not tested this
  • Loading branch information
sgotre committed Mar 23, 2016
1 parent f9fc05f commit 6079c41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/directives/donutChart.directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -63,4 +63,4 @@
}
}
})
})();
})();

0 comments on commit 6079c41

Please sign in to comment.