Data & Storage · zero-dependency · MIT

larzchart

Data to inline SVG charts.

Turns data into inline SVG — line, area, bar, pie/donut and sparklines — with light/dark themes and a curated palette, all XML-escaped. No matplotlib, no image files.

larzscript pkg install chart
View on GitHub →Learn the stack

What you get

Try it

import "chart" as chart
let svg = chart.bar([{"label": "Jan", "value": 10}, {"label": "Feb", "value": 25}])
print(len(svg), "bytes of SVG")
print(svg.contains("<rect") and svg.contains("</svg>"))
print(chart.sparkline([1, 5, 3, 8, 2]))
Output
431 bytes of SVG
true
 +:@.

Why it's in the Larz Stack

larzchart is a real Larzscript package (larzscript pkg install chart) - money-native, zero dependencies, the same language as the rest of the estate, not a separate Python runtime. It composes with the rest of the Larz Stack and the Larz framework.