Skip to main content

Module svg

Module svg 

Source
Expand description

ChartElement tree → SVG string serialization.

Walks the ChartElement tree recursively and emits SVG XML. Lives in chartml-core (alongside ChartElement itself) so the three-stage pipeline’s render_prepared_to_svg can produce a String without adding a circular dependency on chartml-render. chartml-render re-exports element_to_svg from here for back-compat.

Follows the same pattern as chartml-leptos/src/element.rs but produces a string instead of Leptos views.

Functions§

element_to_svg
Convert a ChartElement tree to an SVG string.