28 linhas
717 B
JavaScript
28 linhas
717 B
JavaScript
|
|
(function () {
|
|
|
|
angular
|
|
.module('bciDashboard', ['chart.js'])
|
|
.config(bciDashboardConfig);
|
|
|
|
function bciDashboardConfig (ChartJsProvider) {
|
|
ChartJsProvider.setOptions({
|
|
animation: false,
|
|
responsive: true,
|
|
datasetStrokeWidth: 1,
|
|
pointDot: false,
|
|
pointDotRadius: 1,
|
|
pointDotStrokeWidth: 0,
|
|
datasetFill: false,
|
|
scaleOverride: true,
|
|
scaleStartValue: -2,
|
|
scaleStepWidth: 1,
|
|
scaleSteps: 6,
|
|
barShowStroke: false,
|
|
barValueSpacing: 1,
|
|
barStrokeWidth: 1,
|
|
strokeColor: 'rgba(116,150,161,1)'
|
|
});
|
|
}
|
|
|
|
})(); |