Skip to main content

Module svg

Module svg 

Source
Expand description

SVG renderer. Uses plotters’ SVGBackend and the shared draw dispatch in draw.rs so the canvas renderer produces identical layouts.

Functions§

render_svg
Render spec to an SVG string of the given dimensions. Drawing errors fall back to a minimal SVG with the chart title so a broken chart never fails a page render.