Skip to main content

render_svg

Function render_svg 

Source
pub fn render_svg(spec: &ChartSpec, width: u32, height: u32) -> String
Expand description

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.