Yep, and that's very similar to what I'm doing. Th...
# package-development
d
Yep, and that's very similar to what I'm doing. The dashboard is loading fine as is the data from the APIs, it's just not recognising the angular-chart module (I think) so none of the canvas charts are rendering. Here's an example:
Copy code
(function () {
    'use strict';

    var app = angular.module("umbraco");
    app.requires.push('chart.js');
  
    app.controller("StatsDashboard.Dashboard.Controller", function ($scope, $timeout, statsResources, statsConfig) {

        const vm = this;

        statsResources.getUniqueSessionCounts().then(function (data) {
            vm.sessionTotalsData = data;
            vm.sessionTotalsOptions = {
                responsive: true,
                maintainAspectRatio: false,
                elements: {
                    point:{
                        radius: 0
                    }
                },
                scales: {
                    xAxes: [{
                        type: 'time',
                        displayFormats: {
                            quarter: 'MMM YYYY'
                        },
                        time: {
                            unit: 'month'
                        }
                    }]
                }
            };
        });
})();