@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
| Constant | Value | Description |
|---|---|---|
| ECHARTS_MODULE_OPTIONS | "ECHARTS_MODULE_OPTIONS" | Injection token for module options |
| ECHARTS_SERVICE_TOKEN | "ECHARTS_SERVICE" | Injection token for EChartsService |
| DEFAULT_POOL_SIZE | 2 | Default browser pool size |
| DEFAULT_TIMEOUT | 10000 | Default render timeout in ms |
| DEFAULT_WIDTH | 800 | Default chart width |
| DEFAULT_HEIGHT | 600 | Default chart height |