Configure chart theme
Configure chart theme
Configure the chart theme for all G2, but only provide interfaces. For the configuration chart theme parameters, please refer to G2 website.
// global-config.module.tsconst alainConfig: AlainConfig = { chart: { theme: 'dark' },};export class DelonModule { static forRoot(): ModuleWithProviders { return { ngModule: DelonModule, providers: [ { provide: ALAIN_CONFIG, useValue: alainConfig } ] }; }}
