1
0
mirror of https://github.com/Foltik/Shimapan synced 2024-11-15 01:06:32 -05:00
shimapan/app/public/panel/controllers/DashCtrl.js

23 lines
726 B
JavaScript

var angular = require('angular');
angular.module('DashCtrl', ['chart.js']).controller('DashController', ['$scope', $scope => {
$scope.uploadColors = ['#2a9fd6'];
$scope.uploadLabels = ["January", "February", "March", "April", "May", "June", "July"];
$scope.uploadSeries = ['Uploads'];
$scope.uploadData = [[65, 59, 80, 81, 56, 55, 40]];
$scope.uploadDatasetOverride = [{ yAxisID: 'y-axis-1' }, { yAxisID: 'y-axis-2' }];
$scope.uploadOptions = {
scales: {
yAxes: [
{
id: 'y-axis-1',
type: 'linear',
display: true,
position: 'left'
}
]
}
};
}]);