svg_area_chart

aggregate · LOAD svg_charts

svg_area_chart(ANY, DOUBLE) -> VARCHAR

Collapses a group of rows into one filled area chart.

SELECT svg_area_chart(month, sales) FROM monthly_sales;

Identical to svg_line_chart but for the fill beneath the line: same arguments, same aggregate semantics, same options, and the same warning about input order.

Area charts are what stacking is usually for — give several series the same stack_id, and add 'stack_offset': 'expand' to turn the stack into shares of 100%.

Requires LOAD svg_charts.