diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 961ab08b13..5857bb2bbc 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -4,7 +4,7 @@ import { BrowserModule, Title } from '@angular/platform-browser' import { BsDropdownModule } from 'ngx-bootstrap/dropdown' import { TabsModule } from 'ngx-bootstrap/tabs' import { HTTP_INTERCEPTORS, provideHttpClient, withInterceptorsFromDi } from '@angular/common/http' -import { NgChartsModule } from 'ng2-charts' +import { provideCharts, withDefaultRegisterables } from 'ng2-charts' import { ModalModule } from 'ngx-bootstrap/modal' import { PaginationModule } from 'ngx-bootstrap/pagination' import { ClipboardModule } from 'ngx-clipboard' @@ -73,7 +73,6 @@ import { TitleService } from './title.service' CommonModule, BsDropdownModule.forRoot(), TabsModule.forRoot(), - NgChartsModule, ModalModule.forRoot(), PaginationModule.forRoot(), SharedModuleModule, @@ -110,6 +109,7 @@ import { TitleService } from './title.service' provide: ErrorHandler, useClass: UncaughtExceptionHandler }, + provideCharts(withDefaultRegisterables()), ApiSettings, UserService, CookieService, diff --git a/src/app/projectmanagement/projectmanagement.module.ts b/src/app/projectmanagement/projectmanagement.module.ts index 7a612831d0..64baca103e 100644 --- a/src/app/projectmanagement/projectmanagement.module.ts +++ b/src/app/projectmanagement/projectmanagement.module.ts @@ -4,7 +4,6 @@ import { CommonModule } from '@angular/common' import { ModalModule } from 'ngx-bootstrap/modal' import { FormsModule } from '@angular/forms' import { AccordionModule } from 'ngx-bootstrap/accordion' -import { NgChartsModule } from 'ng2-charts' import { BsDropdownModule } from 'ngx-bootstrap/dropdown' import { AlertModule } from 'ngx-bootstrap/alert' import { NgSelectModule } from '@ng-select/ng-select' @@ -40,7 +39,6 @@ import { WithdrawModalComponent } from './modals/withdraw/withdraw-modal.compone ModalModule.forRoot(), ApplicationsModule, SharedDirectivesModule, - NgChartsModule, PipeModuleModule, BsDropdownModule, AlertModule,