diff --git a/Client/package-lock.json b/Client/package-lock.json index a77a625..c414a3c 100644 --- a/Client/package-lock.json +++ b/Client/package-lock.json @@ -948,6 +948,11 @@ } } }, + "@types/chart.js": { + "version": "2.9.7", + "resolved": "https://registry.npmjs.org/@types/chart.js/-/chart.js-2.9.7.tgz", + "integrity": "sha512-T+oRIWLPu6cXWYSTwihkeZLKk5V4U4O09Uqx4padQto1XVH7YafX4Z4YV1OIWnKbkqMn/4Cuj9ZwWcG6fnKK3A==" + }, "@types/jasmine": { "version": "2.8.15", "resolved": "https://registry.npmjs.org/@types/jasmine/-/jasmine-2.8.15.tgz", diff --git a/Client/package.json b/Client/package.json index e6266d5..fe2c3c2 100644 --- a/Client/package.json +++ b/Client/package.json @@ -20,7 +20,7 @@ "@angular/material": "^7.2.1", "@angular/platform-browser": "~7.2.0", "@angular/platform-browser-dynamic": "~7.2.0", - "@angular/router": "~7.2.0", + "@angular/router": "~7.2.0", "chart.js": "^2.9.3", "chartjs-plugin-datalabels": "^0.7.0", "core-js": "^2.5.4", @@ -37,6 +37,7 @@ "@types/jasmine": "~2.8.8", "@types/jasminewd2": "~2.0.3", "@types/node": "~8.9.4", + "@types/chart.js": "^2.9.7", "codelyzer": "~4.5.0", "jasmine-core": "~2.99.1", "jasmine-spec-reporter": "~4.2.1", diff --git a/Client/src/app/components/contributor-yearly-report/contributor-yearly-report.component.ts b/Client/src/app/components/contributor-yearly-report/contributor-yearly-report.component.ts index 08bd118..7f73ac8 100644 --- a/Client/src/app/components/contributor-yearly-report/contributor-yearly-report.component.ts +++ b/Client/src/app/components/contributor-yearly-report/contributor-yearly-report.component.ts @@ -1,7 +1,7 @@ import { Component, OnInit, Input, ViewChild, ElementRef } from '@angular/core'; import { PrintService } from '../../services/print-service'; import { Transaction } from '../add-transaction-page/transaction'; -import Chart from 'chart.js'; +import * as Chart from 'chart.js'; import ChartDataLabels from 'chartjs-plugin-datalabels'; @Component({