Skip to content

Commit

Permalink
fix: show only last 12 months on the chart
Browse files Browse the repository at this point in the history
  • Loading branch information
tasso94 committed Nov 14, 2024
1 parent a91495d commit 59fedf8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ const Controller = [

$scope.monthlyMetrics = angular.copy(monthlyMetricsArray);
$scope.monthlyMetrics = $scope.monthlyMetrics.slice(0, 12);
updateMonthlyChart(monthlyMetricsArray.reverse());
updateMonthlyChart($scope.monthlyMetrics.reverse());
$scope.loadingStateMonthly = 'LOADED';
$scope.$apply();
})
Expand Down

0 comments on commit 59fedf8

Please sign in to comment.