RED-2134: Fixed license chart

This commit is contained in:
Adina Țeudan 2021-09-27 20:29:32 +03:00
parent 1d793eb267
commit 966f569b18

View File

@ -29,10 +29,8 @@ export class LicenseInformationScreenComponent implements OnInit {
unlicensedInfo: LicenseReport = {};
totalLicensedNumberOfPages = 0;
analysisPercentageOfLicense = 100;
barChart: any[] = [];
barChart: any[];
lineChartSeries: any[] = [];
yAxisLabel = this._translateService.instant('license-info-screen.chart.pages-per-month');
yAxisLabelRight = this._translateService.instant('license-info-screen.chart.total-pages');
lineChartScheme = {
selectable: true,
group: 'Ordinal',
@ -151,6 +149,7 @@ export class LicenseInformationScreenComponent implements OnInit {
m = startMonth;
y = startYear;
let cumulativePages = 0;
this.barChart = [];
for (const report of reports) {
cumulativePages += report.numberOfAnalyzedPages;
this.barChart.push({