SVG charts: static D3 output as vector images
image elements with SVG sources: D3 charts pre-rendered in node (the migration path for client-side D3 under wkhtmltopdf), icons, and inline SVG markup from the data. Everything is drawn as vector paths and real text. See docs/svg.md.
liuska render -t examples/svg-charts/template.json -d examples/svg-charts/data.json -o svg-charts.pdf
Things to look at:
workload-bar.svgandworkload-line.svgcome from the benchmark workload's owncharts.js(D3 v5.16), with fixed box sizes and the page's chart CSS moved into a<style>element inside the SVG. The-nostylevariants are the same charts without that CSS, so they show D3's defaults (blackcurrentColor, 10px axes, 16px labels).d3-*.svgare D3 v7 charts: a donut (arcs,viewBox, tspans), an area with astop-opacitygradient, a clip path and a dashed mean line, symbols with a radial gradient and a rotated axis title, and stacked bars with a legend.badge.svgpacks in<style>rules, radial and linear gradients, a clip path,symbol/use,skewX,hsl()/rgba()colours,letter-spacingand a dashed stroke.statustakes its file name from the data ({{statusIcon}}), andsparktakes inline<svg>markup from the data ({{inlineChart}}).
generate-d3.mjs regenerates the D3 files: npm install d3@7 jsdom@24, then node generate-d3.mjs <bench/compare/workload dir> <out dir>.