Vega-Lite chart reference

July 23, 2026 · View on GitHub

This page is generated from the live chart-template registry (scripts/gen-chart-reference.ts). Do not edit it by hand — run npm run gen:reference.

The Vega-Lite backend serves as Flint's reference implementation and offers the broadest chart coverage. Use it when you want the most complete support for declarative charts, including axis, scale, and faceting behavior.

What this page covers

This reference lists the 35 chart types currently supported by the Vega-Lite backend, grouped into 6 categories. Each chart entry shows:

  • Encoding channels — the visual roles accepted in chart_spec.encodings, such as x, y, color, size, column, or row.
  • Options — template-specific chart_spec.chartProperties keys, including control type, domain, default, availability, and description.

Use the chart type name exactly as shown in chart_spec.chartType.

How to set encodings and options

Set encodings in chart_spec.encodings and chart-specific options in chart_spec.chartProperties. Option keys match the parameter names below:

{
  "chartType": "Bar Chart",
  "encodings": { "x": { "field": "category" }, "y": { "field": "value" } },
  "chartProperties": { "cornerRadius": 4, "stackMode": "normalize" }
}

The Availability column shows whether a parameter is always available or conditional, meaning it appears only when the data and encodings make it relevant. For example, log-scale controls appear only on wide-range axes. Non-applicable parameters are safe to pass; the assembler ignores them.

Points

Scatter Plot

Encoding channels: x, y, color, size, shape, opacity, column, row

ParameterControlDomainDefaultAvailabilityDescription
opacitynumber0.1 – 1 (step 0.1)1alwaysMark opacity.
independentYAxistoggleon / offfalseconditionalUse independent y-scales for facets.
logScale_xtoggleon / offfalseconditionalUse a log/symlog scale on the x-axis.
logScale_ytoggleon / offfalseconditionalUse a log/symlog scale on the y-axis.
includeZero_xtoggleon / offfalseconditionalAnchor the x-axis at zero.
includeZero_ytoggleon / offfalseconditionalAnchor the y-axis at zero.

Regression

Encoding channels: x, y, size, color, column, row

ParameterControlDomainDefaultAvailabilityDescription
regressionMethodchoicelinear (Linear), log (Logarithmic), exp (Exponential), pow (Power), quad (Quadratic), poly (Polynomial)linearalwaysRegression fit method.
polyOrdernumber2 – 10 (step 1)3alwaysPolynomial order for the regression fit.
independentYAxistoggleon / offfalseconditionalUse independent y-scales for facets.
logScale_xtoggleon / offfalseconditionalUse a log/symlog scale on the x-axis.
logScale_ytoggleon / offfalseconditionalUse a log/symlog scale on the y-axis.
includeZero_xtoggleon / offfalseconditionalAnchor the x-axis at zero.
includeZero_ytoggleon / offfalseconditionalAnchor the y-axis at zero.

Connected Scatter Plot

Encoding channels: x, y, order, color, detail, column, row

ParameterControlDomainDefaultAvailabilityDescription
independentYAxistoggleon / offfalseconditionalUse independent y-scales for facets.
logScale_xtoggleon / offfalseconditionalUse a log/symlog scale on the x-axis.
logScale_ytoggleon / offfalseconditionalUse a log/symlog scale on the y-axis.
includeZero_xtoggleon / offfalseconditionalAnchor the x-axis at zero.
includeZero_ytoggleon / offfalseconditionalAnchor the y-axis at zero.

Ranged Dot Plot

Encoding channels: x, y, color

ParameterControlDomainDefaultAvailabilityDescription
logScale_xtoggleon / offfalseconditionalUse a log/symlog scale on the x-axis.
logScale_ytoggleon / offfalseconditionalUse a log/symlog scale on the y-axis.
includeZero_xtoggleon / offfalseconditionalAnchor the x-axis at zero.
includeZero_ytoggleon / offfalseconditionalAnchor the y-axis at zero.

Strip Plot

Encoding channels: x, y, color, size, column, row

ParameterControlDomainDefaultAvailabilityDescription
stepWidthnumber10 – 100 (step 5)20alwaysJitter spread width.
pointSizenumber0 – 150 (step 5)0alwaysPoint or marker size.
opacitynumber0 – 1 (step 0.1)0alwaysMark opacity.
independentYAxistoggleon / offfalseconditionalUse independent y-scales for facets.
logScale_xtoggleon / offfalseconditionalUse a log/symlog scale on the x-axis.
logScale_ytoggleon / offfalseconditionalUse a log/symlog scale on the y-axis.
includeZero_xtoggleon / offfalseconditionalAnchor the x-axis at zero.
includeZero_ytoggleon / offfalseconditionalAnchor the y-axis at zero.

Bars

Bar Chart

Encoding channels: x, y, color, opacity, column, row

ParameterControlDomainDefaultAvailabilityDescription
cornerRadiusnumber0 – 15 (step 1)0alwaysCorner radius for supported marks.
independentYAxistoggleon / offfalseconditionalUse independent y-scales for facets.
xAxisTypechoicetemporal (Temporal), nominal (Discrete)conditionalInterpret the x-axis as a continuous time scale or discrete bands.
yAxisTypechoicetemporal (Temporal), nominal (Discrete)conditionalInterpret the y-axis as a continuous time scale or discrete bands.

Grouped Bar Chart

Encoding channels: x, y, group, column, row

ParameterControlDomainDefaultAvailabilityDescription
dodgechoiceauto (Auto), local (Local (compact)), global (Global (aligned))autoconditionalDodge
independentYAxistoggleon / offfalseconditionalUse independent y-scales for facets.

Stacked Bar Chart

Encoding channels: x, y, color, column, row

ParameterControlDomainDefaultAvailabilityDescription
stackModechoiceStacked (default) (default), normalize (Normalize (100%)), center (Center)conditionalStacking strategy for overlapping series.
independentYAxistoggleon / offfalseconditionalUse independent y-scales for facets.

Lollipop Chart

Encoding channels: x, y, color, column, row

ParameterControlDomainDefaultAvailabilityDescription
dotSizenumber20 – 300 (step 10)80alwaysSize of the dot mark.
independentYAxistoggleon / offfalseconditionalUse independent y-scales for facets.
xAxisTypechoicetemporal (Temporal), nominal (Discrete)conditionalInterpret the x-axis as a continuous time scale or discrete bands.
yAxisTypechoicetemporal (Temporal), nominal (Discrete)conditionalInterpret the y-axis as a continuous time scale or discrete bands.

Waterfall Chart

Encoding channels: x, y, color, column, row

ParameterControlDomainDefaultAvailabilityDescription
cornerRadiusnumber0 – 8 (step 1)0alwaysCorner radius for supported marks.
totalschoiceauto (Auto), none (None), first (First), last (Last), both (Both)autoconditionalTotals
showTextLabelstoggleon / offfalsealwaysRender value labels on the marks.
independentYAxistoggleon / offfalseconditionalUse independent y-scales for facets.

Gantt Chart

Encoding channels: y, x, x2, color, detail, column, row

ParameterControlDomainDefaultAvailabilityDescription
taskHeightnumber40 – 90 (step 5)70alwaysTask bar height as a percentage of each row.
cornerRadiusnumber0 – 8 (step 1)2alwaysCorner radius for supported marks.
intervalLabelstoggleon / offfalsealwaysText shown on task intervals.
independentYAxistoggleon / offfalseconditionalUse independent y-scales for facets.
logScale_xtoggleon / offfalseconditionalUse a log/symlog scale on the x-axis.
logScale_ytoggleon / offfalseconditionalUse a log/symlog scale on the y-axis.
includeZero_xtoggleon / offfalseconditionalAnchor the x-axis at zero.
includeZero_ytoggleon / offfalseconditionalAnchor the y-axis at zero.

Bullet Chart

Encoding channels: y, x, goal, color, column, row

ParameterControlDomainDefaultAvailabilityDescription
independentYAxistoggleon / offfalseconditionalUse independent y-scales for facets.

Distributions

Histogram

Encoding channels: x, color, column, row

ParameterControlDomainDefaultAvailabilityDescription
binCountnumber5 – 50 (step 1)AutoalwaysMaximum bin cap; Auto lets the backend choose.
independentYAxistoggleon / offfalseconditionalUse independent y-scales for facets.

Density Plot

Encoding channels: x, color, column, row

ParameterControlDomainDefaultAvailabilityDescription
bandwidthnumber0.05 – 2 (step 0.05)0alwaysKernel-density bandwidth (0 = auto).
independentYAxistoggleon / offfalseconditionalUse independent y-scales for facets.

ECDF Plot

Encoding channels: x, color, detail, column, row

ParameterControlDomainDefaultAvailabilityDescription
showPointstoggleon / offfalsealwaysOverlay point markers on the line.
independentYAxistoggleon / offfalseconditionalUse independent y-scales for facets.
logScale_xtoggleon / offfalseconditionalUse a log/symlog scale on the x-axis.
logScale_ytoggleon / offfalseconditionalUse a log/symlog scale on the y-axis.
includeZero_xtoggleon / offfalseconditionalAnchor the x-axis at zero.
includeZero_ytoggleon / offfalseconditionalAnchor the y-axis at zero.

Violin Plot

Encoding channels: x, y, color, row

ParameterControlDomainDefaultAvailabilityDescription
bandwidthnumber0.05 – 2 (step 0.05)0alwaysKernel-density bandwidth (0 = auto).
independentYAxistoggleon / offfalseconditionalUse independent y-scales for facets.

Boxplot

Encoding channels: x, y, color, opacity, column, row

ParameterControlDomainDefaultAvailabilityDescription
whiskerMethodchoiceiqr (Tukey (1.5 × IQR)), minmax (Min–Max)iqralwaysWhiskers
showOutlierstoggleon / offtrueconditionalOutliers
dodgechoiceauto (Auto), local (Local (compact)), global (Global (aligned))autoconditionalDodge
independentYAxistoggleon / offfalseconditionalUse independent y-scales for facets.
logScale_xtoggleon / offfalseconditionalUse a log/symlog scale on the x-axis.
logScale_ytoggleon / offfalseconditionalUse a log/symlog scale on the y-axis.
includeZero_xtoggleon / offfalseconditionalAnchor the x-axis at zero.
includeZero_ytoggleon / offfalseconditionalAnchor the y-axis at zero.

Pyramid Chart

Encoding channels: x, y, color

No template-specific parameters.

Candlestick Chart

Encoding channels: x, open, high, low, close, column, row

ParameterControlDomainDefaultAvailabilityDescription
independentYAxistoggleon / offfalseconditionalUse independent y-scales for facets.
logScale_xtoggleon / offfalseconditionalUse a log/symlog scale on the x-axis.
logScale_ytoggleon / offfalseconditionalUse a log/symlog scale on the y-axis.
includeZero_xtoggleon / offfalseconditionalAnchor the x-axis at zero.
includeZero_ytoggleon / offfalseconditionalAnchor the y-axis at zero.

Lines & Areas

Line Chart

Encoding channels: x, y, color, strokeDash, detail, opacity, column, row

ParameterControlDomainDefaultAvailabilityDescription
interpolatechoiceDefault (linear) (default), linear (Linear), monotone (Monotone (smooth)), step (Step), step-before (Step Before), step-after (Step After), basis (Basis (smooth)), cardinal (Cardinal), catmull-rom (Catmull-Rom)alwaysLine or area interpolation method.
showPointstoggleon / offfalsealwaysOverlay point markers on the line.
independentYAxistoggleon / offfalseconditionalUse independent y-scales for facets.
logScale_xtoggleon / offfalseconditionalUse a log/symlog scale on the x-axis.
logScale_ytoggleon / offfalseconditionalUse a log/symlog scale on the y-axis.
includeZero_xtoggleon / offfalseconditionalAnchor the x-axis at zero.
includeZero_ytoggleon / offfalseconditionalAnchor the y-axis at zero.
xAxisTypechoicetemporal (Temporal), nominal (Discrete)conditionalInterpret the x-axis as a continuous time scale or discrete bands.
yAxisTypechoicetemporal (Temporal), nominal (Discrete)conditionalInterpret the y-axis as a continuous time scale or discrete bands.

Sparkline

Encoding channels: x, y, color, detail, row, column

ParameterControlDomainDefaultAvailabilityDescription
interpolatechoiceDefault (linear) (default), linear (Linear), monotone (Monotone (smooth)), step (Step), step-before (Step Before), step-after (Step After), basis (Basis (smooth)), cardinal (Cardinal), catmull-rom (Catmull-Rom)alwaysLine or area interpolation method.
baselinechoicemean (Average), zero (Zero), median (Median), none (None)meanalwaysReference line
trendWidthnumber80 – 600 (step 10)240alwaysSparkline width
logScale_xtoggleon / offfalseconditionalUse a log/symlog scale on the x-axis.
logScale_ytoggleon / offfalseconditionalUse a log/symlog scale on the y-axis.
includeZero_xtoggleon / offfalseconditionalAnchor the x-axis at zero.
includeZero_ytoggleon / offfalseconditionalAnchor the y-axis at zero.

Bump Chart

Encoding channels: x, y, color, detail, column, row

ParameterControlDomainDefaultAvailabilityDescription
independentYAxistoggleon / offfalseconditionalUse independent y-scales for facets.
logScale_xtoggleon / offfalseconditionalUse a log/symlog scale on the x-axis.
logScale_ytoggleon / offfalseconditionalUse a log/symlog scale on the y-axis.
includeZero_xtoggleon / offfalseconditionalAnchor the x-axis at zero.
includeZero_ytoggleon / offfalseconditionalAnchor the y-axis at zero.

Slope Chart

Encoding channels: x, y, color, detail, column, row

ParameterControlDomainDefaultAvailabilityDescription
independentYAxistoggleon / offfalseconditionalUse independent y-scales for facets.
logScale_xtoggleon / offfalseconditionalUse a log/symlog scale on the x-axis.
logScale_ytoggleon / offfalseconditionalUse a log/symlog scale on the y-axis.
includeZero_xtoggleon / offfalseconditionalAnchor the x-axis at zero.
includeZero_ytoggleon / offfalseconditionalAnchor the y-axis at zero.

Area Chart

Encoding channels: x, y, color, opacity, column, row

ParameterControlDomainDefaultAvailabilityDescription
interpolatechoiceDefault (linear) (default), linear (Linear), monotone (Monotone (smooth)), step (Step), step-before (Step Before), step-after (Step After), basis (Basis (smooth)), cardinal (Cardinal), catmull-rom (Catmull-Rom)alwaysLine or area interpolation method.
opacitynumber0.1 – 1 (step 0.1)0.7conditionalMark opacity.
stackModechoiceStacked (default) (default), normalize (Normalize (100%)), center (Center), layered (Layered (overlap))conditionalStacking strategy for overlapping series.
independentYAxistoggleon / offfalseconditionalUse independent y-scales for facets.
xAxisTypechoicetemporal (Temporal), nominal (Discrete)conditionalInterpret the x-axis as a continuous time scale or discrete bands.
yAxisTypechoicetemporal (Temporal), nominal (Discrete)conditionalInterpret the y-axis as a continuous time scale or discrete bands.

Streamgraph

Encoding channels: x, y, color, column, row

ParameterControlDomainDefaultAvailabilityDescription
interpolatechoiceDefault (linear) (default), linear (Linear), monotone (Monotone (smooth)), step (Step), step-before (Step Before), step-after (Step After), basis (Basis (smooth)), cardinal (Cardinal), catmull-rom (Catmull-Rom)alwaysLine or area interpolation method.
independentYAxistoggleon / offfalseconditionalUse independent y-scales for facets.

Range Area Chart

Encoding channels: x, y, y2, color, column, row

ParameterControlDomainDefaultAvailabilityDescription
interpolatechoiceDefault (linear) (default), linear (Linear), monotone (Monotone (smooth)), step (Step), step-before (Step Before), step-after (Step After), basis (Basis (smooth))alwaysLine or area interpolation method.
opacitynumber0.1 – 1 (step 0.1)0.5alwaysMark opacity.
independentYAxistoggleon / offfalseconditionalUse independent y-scales for facets.

Circular

Pie Chart

Encoding channels: size, color, column, row

ParameterControlDomainDefaultAvailabilityDescription
innerRadiusnumber0 – 100 (step 5)0alwaysInner radius as a percentage of the outer radius.
sortSliceschoicenone (Data order), descending (Largest first), ascending (Smallest first)nonealwaysSort slices
independentYAxistoggleon / offfalseconditionalUse independent y-scales for facets.

Donut Chart

Encoding channels: size, color, column, row

ParameterControlDomainDefaultAvailabilityDescription
innerRadiusnumber0 – 100 (step 5)0alwaysInner radius as a percentage of the outer radius.
sortSliceschoicenone (Data order), descending (Largest first), ascending (Smallest first)nonealwaysSort slices
independentYAxistoggleon / offfalseconditionalUse independent y-scales for facets.

Rose Chart

Encoding channels: x, y, color, column, row

ParameterControlDomainDefaultAvailabilityDescription
padAnglenumber0 – 0.1 (step 0.005)0alwaysAngular gap between radial segments.
alignmentchoiceleft (Left (default)), center (Center)alwaysSegment alignment for radial charts.
sortSliceschoicenone (Data order), descending (Largest first), ascending (Smallest first)nonealwaysSort slices
independentYAxistoggleon / offfalseconditionalUse independent y-scales for facets.

Radar Chart

Encoding channels: x, y, color, column, row

ParameterControlDomainDefaultAvailabilityDescription
filledtoggleon / offtruealwaysFill the enclosed radar area.
fillOpacitynumber0 – 0.5 (step 0.1)0.15alwaysFill opacity for the area or region.
strokeWidthnumber0.5 – 4 (step 0.5)1.5alwaysLine stroke width.
independentYAxistoggleon / offfalseconditionalUse independent y-scales for facets.
logScale_xtoggleon / offfalseconditionalUse a log/symlog scale on the x-axis.
logScale_ytoggleon / offfalseconditionalUse a log/symlog scale on the y-axis.
includeZero_xtoggleon / offfalseconditionalAnchor the x-axis at zero.
includeZero_ytoggleon / offfalseconditionalAnchor the y-axis at zero.

Tables & Maps

Heatmap

Encoding channels: x, y, color, column, row

ParameterControlDomainDefaultAvailabilityDescription
showTextLabelstoggleon / offfalsealwaysRender value labels on the marks.
independentYAxistoggleon / offfalseconditionalUse independent y-scales for facets.
xAxisTypechoicetemporal (Temporal), nominal (Discrete)conditionalInterpret the x-axis as a continuous time scale or discrete bands.
yAxisTypechoicetemporal (Temporal), nominal (Discrete)conditionalInterpret the y-axis as a continuous time scale or discrete bands.

Bar Table

Encoding channels: y, x, color, column, row

ParameterControlDomainDefaultAvailabilityDescription
maxRowsnumber5 – 100 (step 1)20alwaysMaximum number of table rows to display.
showPercenttoggleon / offfalseconditionalShow each value as a percentage of the total.
independentYAxistoggleon / offfalseconditionalUse independent y-scales for facets.

KPI Card

Encoding channels: metric, value, goal

ParameterControlDomainDefaultAvailabilityDescription
layoutchoicehorizontal (Horizontal), vertical (Vertical), grid (Grid)gridalwaysLayout
styletoggleon / offtruealwaysCard style
behindThresholdnumber0 – 1 (step 0.05)0.5conditionalBehind threshold
logScale_xtoggleon / offfalseconditionalUse a log/symlog scale on the x-axis.
logScale_ytoggleon / offfalseconditionalUse a log/symlog scale on the y-axis.
includeZero_xtoggleon / offfalseconditionalAnchor the x-axis at zero.
includeZero_ytoggleon / offfalseconditionalAnchor the y-axis at zero.

Map

Encoding channels: longitude, latitude, color, size, opacity

ParameterControlDomainDefaultAvailabilityDescription
regionchoiceauto (Auto-detect), us (United States), world (World)autoalwaysRegion
projectionchoicedefault (Default), mercator (Mercator), equalEarth (Equal Earth), orthographic (Orthographic (Globe)), stereographic (Stereographic), conicEqualArea (Conic Equal Area), conicEquidistant (Conic Equidistant), azimuthalEquidistant (Azimuthal Equidistant), mollweide (Mollweide)defaultconditionalProjection
projectionCenterchoiceDefault (default), 0,0 (World (Atlantic) [0, 0]), 150,0 (World (Pacific) [150, 0]), 105,35 (China [105, 35]), -98,39 (USA [-98, 39]), 10,50 (Europe [10, 50]), 138,36 (Japan [138, 36]), 78,22 (India [78, 22]), -52,-14 (Brazil [-52, -14]), 134,-25 (Australia [134, -25]), 100,60 (Russia [100, 60]), 20,0 (Africa [20, 0]), 45,28 (Middle East [45, 28]), 115,5 (Southeast Asia [115, 5]), -60,-15 (South America [-60, -15]), -100,45 (North America [-100, 45]), -2,54 (UK [-2, 54]), 10,51 (Germany [10, 51]), 2,47 (France [2, 47]), 128,36 (Korea [128, 36])conditionalCenter
logScale_xtoggleon / offfalseconditionalUse a log/symlog scale on the x-axis.
logScale_ytoggleon / offfalseconditionalUse a log/symlog scale on the y-axis.
includeZero_xtoggleon / offfalseconditionalAnchor the x-axis at zero.
includeZero_ytoggleon / offfalseconditionalAnchor the y-axis at zero.

Choropleth

Encoding channels: id, color, detail

ParameterControlDomainDefaultAvailabilityDescription
regionchoiceauto (Auto-detect), us (United States), world (World)autoalwaysRegion