Plotly chart reference

July 27, 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 Plotly backend compiles to a Plotly.js figure ({ data, layout }) and leans on Plotly-native trace types wherever one exists (candlestick, box, violin, heatmap, waterfall, scatterpolar/barpolar, indicator, scattergeo/choropleth) instead of hand-building the mark. Funnel and Gauge have no Vega-Lite equivalent and showcase Plotly-specific native primitives. Map and Choropleth use Plotly's own built-in geo atlas (no external TopoJSON fetch/join needed). Sparkline and Bar Table are composite, self-contained figures (their own multi-axis-pair grid + annotations) rather than the generic column/row facet combiner.

What this page covers

This reference lists the 38 chart types currently supported by the Plotly backend, grouped into 8 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.

Scatter & Point

Scatter Plot

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

ParameterControlDomainDefaultAvailabilityDescription
opacitynumber0.1 – 1 (step 0.05)1alwaysMark opacity.

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.
opacitynumber0.1 – 1 (step 0.05)1alwaysMark opacity.

Connected Scatter Plot

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

No template-specific parameters.

Ranged Dot Plot

Encoding channels: x, y, color

No template-specific parameters.

Strip Plot

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

No template-specific parameters.

Bar

Bar Chart

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

ParameterControlDomainDefaultAvailabilityDescription
cornerRadiusnumber0 – 15 (step 1)0alwaysCorner radius for supported marks.

Grouped Bar Chart

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

No template-specific parameters.

Stacked Bar Chart

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

ParameterControlDomainDefaultAvailabilityDescription
stackModechoiceStacked (default) (default), normalize (Normalize (100%))conditionalStacking strategy for overlapping series.

Lollipop Chart

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

ParameterControlDomainDefaultAvailabilityDescription
dotSizenumber20 – 300 (step 10)80alwaysSize of the dot mark.

Waterfall Chart

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

ParameterControlDomainDefaultAvailabilityDescription
totalschoiceauto (Auto), none (None), first (First only), last (Last only), both (First and last)autoalwaysTotals
showTextLabelstoggleon / offfalsealwaysRender value labels on the marks.

Pyramid Chart

Encoding channels: x, y, color

No template-specific parameters.

Distributions

Histogram

Encoding channels: x, color, column, row

ParameterControlDomainDefaultAvailabilityDescription
binCountnumber5 – 50 (step 1)10alwaysMaximum bin cap; Auto lets the backend choose.

Boxplot

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

ParameterControlDomainDefaultAvailabilityDescription
showOutlierstoggleon / offtruealwaysOutliers

Violin Plot

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

ParameterControlDomainDefaultAvailabilityDescription
showBoxtoggleon / offtruealwaysInner box
showPointstoggleon / offfalsealwaysOverlay point markers on the line.

Density Plot

Encoding channels: x, color, column, row

ParameterControlDomainDefaultAvailabilityDescription
bandwidthnumber0.05 – 2 (step 0.05)0alwaysKernel-density bandwidth (0 = auto).

ECDF Plot

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

ParameterControlDomainDefaultAvailabilityDescription
showPointstoggleon / offfalsealwaysOverlay point markers on the line.

Candlestick Chart

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

ParameterControlDomainDefaultAvailabilityDescription
showMAtoggleon / offfalsealwaysShow a moving-average overlay.
maWindownumber3 – 30 (step 1)5alwaysMoving-average window size.

Density Contour

Encoding channels: x, y, column, row

ParameterControlDomainDefaultAvailabilityDescription
binCountnumber5 – 50 (step 1)20alwaysMaximum bin cap; Auto lets the backend choose.
showPointstoggleon / offtruealwaysOverlay point markers on the line.

Line & Area

Line 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.
showPointstoggleon / offfalsealwaysOverlay point markers on the line.

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.05)0.4alwaysMark opacity.
stackModechoiceStacked (default) (default), normalize (Normalize (100%)), layered (Layered (overlap))conditionalStacking strategy for overlapping series.

Bump Chart

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

No template-specific parameters.

Slope Chart

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

No template-specific parameters.

Streamgraph

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

No template-specific parameters.

Range Area Chart

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

ParameterControlDomainDefaultAvailabilityDescription
opacitynumber0.1 – 1 (step 0.05)0.35alwaysMark opacity.

Circular

Pie Chart

Encoding channels: size, color

ParameterControlDomainDefaultAvailabilityDescription
sortSliceschoicenone (Data order), descending (Largest first), ascending (Smallest first)nonealwaysSort slices
labelTypechoicecategoryPercent (Name + %), category (Name), value (Value), percent (Percent), none (None)categoryPercentalwaysLabels

Donut Chart

Encoding channels: size, color

ParameterControlDomainDefaultAvailabilityDescription
innerRadiusnumber20 – 80 (step 5)55alwaysInner radius as a percentage of the outer radius.
sortSliceschoicenone (Data order), descending (Largest first), ascending (Smallest first)nonealwaysSort slices
labelTypechoicecategoryPercent (Name + %), category (Name), value (Value), percent (Percent), none (None)categoryPercentalwaysLabels

Radar Chart

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

ParameterControlDomainDefaultAvailabilityDescription
filledchoicetrue (Filled (default)), false (Outline only)alwaysFill the enclosed radar area.
fillOpacitynumber0.05 – 0.8 (step 0.05)0.3alwaysFill opacity for the area or region.

Rose Chart

Encoding channels: x, y, color

ParameterControlDomainDefaultAvailabilityDescription
sortSliceschoicenone (Data order), descending (Largest first), ascending (Smallest first)nonealwaysSort slices

Tables & KPIs

Heatmap

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

No template-specific parameters.

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.

Bullet Chart

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

No template-specific parameters.

KPI Card

Encoding channels: metric, value, goal

ParameterControlDomainDefaultAvailabilityDescription
layoutchoicehorizontal (Horizontal (default)), vertical (Vertical), grid (Grid)alwaysLayout

Sparkline

Encoding channels: x, y, color, detail

ParameterControlDomainDefaultAvailabilityDescription
baselinechoicemean (Average), zero (Zero), median (Median), none (None)meanalwaysReference line
trendWidthnumber80 – 600 (step 10)240alwaysSparkline width

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.

Maps

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

Choropleth

Encoding channels: id, color, detail

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

Opportunity

Funnel Chart

Encoding channels: y, size

ParameterControlDomainDefaultAvailabilityDescription
sortchoicedescending (Descending (default)), ascending (Ascending), none (Original order)descendingalwaysSort order for ordered stages or categories.

Gauge Chart

Encoding channels: size, column

ParameterControlDomainDefaultAvailabilityDescription
minnumber0 – 1000 (step 10)0alwaysMin
maxnumber0 – 10000 (step 100)100alwaysMax