DuckVizBeta
Reference

Chart Types

Every chart type in the DuckViz widget registry, grouped by family.

DuckViz ships 80+ chart type strings mapped to ~50 D3 chart components across 15 families. The AI widget pipeline picks types based on your data domain and column shapes; you can also request a specific type from the chat prompt, or render one directly via @duckviz/widgets's WidgetRenderer + getChartComponent().

Every chart reads standardized column aliases from your SQL output — see the Column alias contract below.

Bar family

Type stringComponentDescription
barBarChartVertical bar chart — categories on X, values on Y
horizontal-barHorizontalBarChartCategories on Y, bars extending right
grouped-barGroupedBarChartSide-by-side bars per series
stacked-barStackedBarChartStacked composition per category
stacked-horizontal-barStackedHorizontalBarChartHorizontal stacked bars
diverging-barDivergingBarChartBars extending both sides of a centre
radial-barBarChart (radial preset)Bars wrapped around a circle
radial-stacked-barRadialStackedBarChartRadial stacked bars
lollipopLollipopChartThin line + dot per category
bulletBulletChartActual vs target

Line, area, timeseries

The line, multi-line, step-line, curve-line, area, and stacked-area type strings all route to a shared TimeseriesChart component with different modes — unified tooltips, smart tick culling, negative-value handling.

Type stringComponentDescription
lineTimeseriesChartSingle line / time series
multi-lineTimeseriesChartSeveral lines, one per series
step-lineTimeseriesChartStep interpolation
curve-lineTimeseriesChartMonotone-curve interpolation
areaTimeseriesChartFilled area under line
stacked-areaTimeseriesChartStacked composition over time
streamgraphStreamgraphChartSymmetric stacked area
differenceDifferenceChartHighlighted area between two lines
bump / bump-chartBumpChartRanking changes over time
span / span-chart / range-chartSpanChartMin–max range per category

Pie / proportion

Type stringComponentDescription
piePieChartStandard pie
donutDonutChartPie with a hole
waffle / waffle-chartWaffleChart100-square grid proportion

Scatter, bubble, density

Type stringComponentDescription
scatter / connected-scatterScatterChartXY scatter, optionally connected
bubbleBubbleChartSized circles (row cap: 500)
hexbin / hexbin-chartHexbinChartHex binning for dense scatter
contour / contour-chart / density-contourContourChartDensity contours (row cap: 5000)

Distribution

Type stringComponentDescription
histogram / densityHistogramChartFrequency distribution
box-plotBoxPlotChartQuartiles + outliers
violinViolinChartRotated KDE
ridgeline / joy-plotRidgelineChartOverlapping KDEs

Heatmap

Type stringComponentDescription
heatmapHeatmapChartX × Y × value grid (row cap: 2000)
correlogramHeatmapChartCorrelation matrix preset
calendar-heatmapHeatmapChartGitHub-style daily grid

Hierarchy

Type stringComponentDescription
treemap / icicle / partitionTreemapChartRectangles sized by value
sunburstSunburstChartConcentric radial hierarchy
circle-packingCirclePackingChartNested circles (row cap: 500)
tidy-treeTidyTreeChartTidy-tree node-link diagram

Network & flow

Type stringComponentDescription
force-graphForceGraphChartPhysics-based node-link
sankeySankeyChartFlow between stages
chordChordChartChord diagram
arc-diagramArcDiagramChartNodes on an axis, arcs above

Radial / polar

Type stringComponentDescription
radar / polar / radial-line / radial-areaRadarChartMulti-axis spider chart
gaugeGaugeChartSingle-value gauge

Specialty

Type stringComponentDescription
funnelFunnelChartStage conversion funnel
waterfallWaterfallChartRunning total across positive/negative deltas
big-numberBigNumberChartSingle KPI with optional delta/sparkline
candlestick / ohlcCandlestickChartFinancial OHLC
ganttGanttChartTask schedule
timelineTimelineChartEvent timeline
dumbbellDumbbellChartBefore/after pair per row
parallel-coordinatesParallelCoordinatesChartMulti-axis comparison (row cap: 1000)
combination / categoryCombinationChartMixed bar + line series

Geo / spatial

Type stringComponentDescription
geo-mapGeoMapChartChoropleth + point map combined

Text

Type stringComponentDescription
word-cloudWordCloudChartWord frequency
table / data-tableDataTableChartTabular grid (row cap: 10 in dashboard)

Column alias contract

Each chart reads specific column names from the SQL output. The contract is the single source of truth: if the columns don't match, @duckviz/dashboard's alias validator rejects the widget at read time rather than rendering silently-empty.

PatternColumnsUsed by
Category/valuecategory, valuebar, line (category axis), area, pie, donut, treemap, word-cloud, gauge, big-number
XYx, yscatter, bubble, hexbin, contour
XY + valuex, y, valueheatmap, calendar-heatmap
Source/targetsource, target, valuechord, sankey, force-graph, arc-diagram
Hierarchicalcategory, value, parenttreemap, sunburst, circle-packing, tidy-tree
Time seriescategory (date), valueline, area, stacked-area, timeseries
Multi-seriescategory, value, seriesgrouped-bar, stacked-bar, multi-line, stacked-area
OHLCdate, open, high, low, closecandlestick
Rangecategory, start, endgantt, timeline, span
Multi-axiscategory, value, axis1, axis2, …parallel-coordinates, radar

See @duckviz/widgets for CHART_REQUIRED_ALIASES + validateChartAliases().