@nestjsforge/echarts

Decorators & Constants

Available decorators and constants exported by @nestjsforge/echarts.

InjectECharts decorator

Alternative to constructor injection:

import { InjectECharts } from '@nestjsforge/echarts';

@Injectable()
export class MyService {
  constructor(@InjectECharts() private readonly echarts: EChartsService) {}
}

Constants

ConstantValueDescription
ECHARTS_MODULE_OPTIONS"ECHARTS_MODULE_OPTIONS"Injection token for module options
ECHARTS_SERVICE_TOKEN"ECHARTS_SERVICE"Injection token for EChartsService
DEFAULT_POOL_SIZE2Default browser pool size
DEFAULT_TIMEOUT10000Default render timeout in ms
DEFAULT_WIDTH800Default chart width
DEFAULT_HEIGHT600Default chart height