RED-2134: Fixed license chart
This commit is contained in:
parent
1d793eb267
commit
966f569b18
@ -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({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user