Skip to main content
cngx-src documentation

CNGX_CHART_RENDERER_THRESHOLD

Tokenv0.1.0

InjectionToken<number>

Description#

Datapoint count above which <cngx-chart> auto-switches from SVG to Canvas rendering. Default 500 - the point at which the SVG backend's per-layer DOM-node cost starts to dominate on a mid-range laptop.

Override enterprise-wide via withChartRendererThreshold (or a bare provider) to tune the SVG/Canvas crossover for a given app's hardware profile.

Type#

InjectionToken<number>

Provided in#

'root'