eeg_portal/eeg_frontend/src/app/app.config.ts
Bernhard Müller 6cb4ff7a4a fix(frontend): add missing provideEcharts() to app config causing empty dashboard chart
Root cause: ngx-echarts v18+ requires provideEcharts() in the app
config. Without it, NgxEchartsDirective silently fails to render
charts, causing the dashboard overview chart to appear empty.

Added provideEcharts() to app.config.ts and added
DashboardServiceIntegrationTest for the metering data overview endpoint.
2026-07-24 15:57:35 +02:00

20 lines
840 B
TypeScript

import {ApplicationConfig, provideZoneChangeDetection} from '@angular/core';
import {provideRouter} from '@angular/router';
import {routes} from './app.routes';
import {provideHttpClient, withFetch, withInterceptors} from '@angular/common/http';
import {BASE_PATH} from './api';
import {jwtInterceptor} from './interceptors/jwt.interceptor';
import {errorInterceptor} from './interceptors/error.interceptor';
import {environment} from '../environments/environment';
import {provideEcharts} from 'ngx-echarts';
export const appConfig: ApplicationConfig = {
providers: [
provideZoneChangeDetection({ eventCoalescing: true }),
provideRouter(routes),
provideHttpClient(withFetch(),
withInterceptors([jwtInterceptor, errorInterceptor])),
{ provide: BASE_PATH, useValue: environment.apiUrl },
provideEcharts()
]
};