Skip to content

Commit f114f3d

Browse files
committed
feat: implement chart library for data visualization
1 parent ab25cd1 commit f114f3d

12 files changed

Lines changed: 483 additions & 682 deletions

‎app/Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ WORKDIR /usr/src/app
44

55
COPY . /usr/src/app
66

7-
RUN npm install -g @angular/cli && npm install
7+
RUN npm install -g @angular/cli && npm install --legacy-peer-deps
88

99
CMD ["ng", "serve", "--host", "0.0.0.0"]

‎app/package-lock.json‎

Lines changed: 44 additions & 204 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎app/package.json‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
"@angular/platform-browser": "^21.1.1",
1919
"@angular/platform-browser-dynamic": "^21.1.1",
2020
"@angular/router": "^21.1.1",
21+
"chart.js": "^4.5.1",
22+
"ng2-charts": "^8.0.0",
2123
"ngx-cookie-service": "^21.3.1",
2224
"rxjs": "~7.8.0",
2325
"tslib": "^2.3.0",

‎app/src/app/app.config.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ import { provideHttpClient, withInterceptors } from '@angular/common/http';
77
import { authInterceptor } from './auth/auth.interceptor';
88
import { retryInterceptor } from './interceptors/retry.interceptor';
99
import { CookieService } from 'ngx-cookie-service';
10+
import { provideCharts, withDefaultRegisterables } from 'ng2-charts';
1011

1112
export const appConfig: ApplicationConfig = {
1213
providers: [provideZoneChangeDetection({ eventCoalescing: true }), provideRouter(routes),
1314
provideHttpClient(withInterceptors([authInterceptor, retryInterceptor])),
14-
provideAnimations()
15+
provideAnimations(),
16+
provideCharts(withDefaultRegisterables())
1517
]
1618
};

0 commit comments

Comments
 (0)