Skip to main content
cngx-src documentation

createSvgRenderer

Functioncommon/chart/rendererv0.1.0

projects/common/chart/renderer/svg-renderer.ts

Description#

SVG passthrough renderer. Layer atoms render their own <svg:path> / <svg:rect> / <svg:circle>, gated by the chart shell's renderSvg computed, so this backend has nothing to do: every method is a no-op. It never writes back to the chart context - renderSvg ownership stays in the chart shell as the single source of truth.

Signature#

createSvgRenderer(_deps: ChartRendererDeps)

Parameters#

unused; kept for factory signature symmetry with createCanvasRenderer.

Returns#

CngxChartRenderer