ECharts chart reference

July 29, 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 ECharts backend targets interactive, canvas-rendered charts and covers several structures outside Vega-Lite's scope: sunburst, treemap, sankey, gauge, graph, tree, parallel coordinates, and calendar heatmap.

What this page covers

This reference lists the 37 chart types currently supported by the ECharts backend, grouped into 10 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.

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.

Boxplot

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

ParameterControlDomainDefaultAvailabilityDescription
whiskerMethodchoiceiqr (Tukey (1.5 × IQR)), minmax (Min–Max)iqralwaysWhiskers
showPointstoggleon / offfalseconditionalOverlay point markers on the line.
showOutlierstoggleon / offtrueconditionalOutliers
dodgechoiceauto (Auto), local (Local (compact)), global (Global (aligned))autoconditionalDodge

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

ParameterControlDomainDefaultAvailabilityDescription
dodgechoiceauto (Auto), local (Local (compact)), global (Global (aligned))autoconditionalDodge

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.

Pyramid Chart

Encoding channels: x, y, color

No template-specific parameters.

Heatmap

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

No template-specific parameters.

Calendar Heatmap

Encoding channels: x, color

No template-specific parameters.

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.

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.

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.7conditionalMark opacity.
stackModechoiceStacked (default) (default), normalize (Normalize (100%)), center (Center), layered (Layered (overlap))alwaysStacking strategy for overlapping series.

Streamgraph

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

No template-specific parameters.

Range Area Chart

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

No template-specific parameters.

Part-to-Whole

Pie Chart

Encoding channels: size, color, column, row

ParameterControlDomainDefaultAvailabilityDescription
innerRadiusnumber0 – 60 (step 5)0alwaysInner radius as a percentage of the outer radius.
cornerRadiusnumber0 – 10 (step 1)0alwaysCorner radius for supported marks.
sortSliceschoicenone (Data order), descending (Largest first), ascending (Smallest first)nonealwaysSort slices
labelTypechoicecategoryPercent (Name + %), category (Name), value (Value), percent (Percent), none (None)categoryPercentalwaysLabels

Funnel Chart

Encoding channels: y, size

ParameterControlDomainDefaultAvailabilityDescription
sortchoicedescending (Descending (default)), ascending (Ascending), none (Original order)alwaysSort order for ordered stages or categories.
orientchoicevertical (Vertical (default)), horizontal (Horizontal)alwaysChart orientation.
gapnumber0 – 20 (step 1)2alwaysGap between segments.

Treemap

Encoding channels: color, size, detail

ParameterControlDomainDefaultAvailabilityDescription
breadcrumbchoicetrue (Show (default)), false (Hide)alwaysShow or hide treemap breadcrumb navigation.

Sunburst Chart

Encoding channels: color, size, detail, group

ParameterControlDomainDefaultAvailabilityDescription
innerRadiusnumber0 – 80 (step 5)0alwaysInner radius as a percentage of the outer radius.
labelRotatechoiceradial (Radial (default)), tangential (Tangential), 0 (Horizontal)alwaysLabel orientation for sunburst sectors.

Tree

Encoding channels: color, detail, size

ParameterControlDomainDefaultAvailabilityDescription
orientchoiceLR (Left → Right (default)), TB (Top → Bottom)alwaysChart orientation.

Statistical

Histogram

Encoding channels: x, color, column, row

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

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.

Parallel Coordinates

Encoding channels: color, detail

No template-specific parameters.

Financial

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.

Other

Waterfall Chart

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.

Polar

Radar Chart

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

ParameterControlDomainDefaultAvailabilityDescription
shapechoicePolygon (default) (default), circle (Circle)alwaysGrid
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, column, row

ParameterControlDomainDefaultAvailabilityDescription
alignmentchoiceleft (Left (default)), center (Center)alwaysSegment alignment for radial charts.
sortSliceschoicenone (Data order), descending (Largest first), ascending (Smallest first)nonealwaysSort slices

Indicator

Gauge Chart

Encoding channels: size, column

ParameterControlDomainDefaultAvailabilityDescription
minnumber0 – 1000 (step 10)0alwaysMin
maxnumber0 – 10000 (step 100)100alwaysMax
showProgresschoicetrue (Show (default)), false (Hide)alwaysProgress

Flow

Sankey Diagram

Encoding channels: x, y, size

ParameterControlDomainDefaultAvailabilityDescription
orientchoicehorizontal (Horizontal (default)), vertical (Vertical)alwaysChart orientation.
nodeWidthnumber5 – 40 (step 5)20alwaysNode Width
nodeGapnumber2 – 30 (step 2)10alwaysNode Gap

Network Graph

Encoding channels: x, y, size

ParameterControlDomainDefaultAvailabilityDescription
layoutchoicecircular (Circular (default)), force (Force-directed)alwaysLayout