mirror of https://github.com/akveo/blur-admin
24 lines
711 B
JavaScript
24 lines
711 B
JavaScript
/**
|
|
* @author a.demeshko
|
|
* created on 12/16/15
|
|
*/
|
|
(function () {
|
|
'use strict';
|
|
|
|
angular.module('BlurAdmin.theme')
|
|
.config(chartJsConfig);
|
|
|
|
/** @ngInject */
|
|
function chartJsConfig(ChartJsProvider, layoutColors) {
|
|
// Configure all charts
|
|
ChartJsProvider.setOptions({
|
|
colours: [layoutColors.primary, layoutColors.danger, layoutColors.warning, layoutColors.success, layoutColors.default, layoutColors.primaryDark, layoutColors.successDark, layoutColors.warningLight, layoutColors.successLight, layoutColors.successBg, layoutColors.info],
|
|
responsive: true
|
|
});
|
|
// Configure all line charts
|
|
ChartJsProvider.setOptions('Line', {
|
|
datasetFill: false
|
|
});
|
|
}
|
|
|
|
})(); |