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