Toggle Sidebar B
AppearanceLight & dark mode D

Chart Area

Area charts built on unovis-vue. One ChartArea handles single or multi-series data, with optional gradient fills and stacking.

Default

A single-series gradient area.

Dark previewReplay preview

Gradient

Multiple overlapping series, each with its own gradient fill.

Dark previewReplay preview

Stacked

Series stacked on top of each other (stacked prop).

Dark previewReplay preview

Axes

Solid multi-series fills with both axes labelled.

Dark previewReplay preview

Legend & icons

Add a legend and per-series icons via the config.

Dark previewReplay preview

Interactive

Filter the visible range with a select.

Dark previewReplay preview

Gradient with grid

A gradient area over a dashed horizontal grid.

Dark previewReplay preview

Stacked with dashed strokes

Stacked gradient areas with per-series dashed outlines.

Dark previewReplay preview

Step with dotted fill

A step curve filled with a dotted SVG pattern.

Dark previewReplay preview

Glowing dots

A glowing line and dot markers via SVG filters.

Dark previewReplay preview

Crosshatch pattern

Stacked areas filled with crosshatch SVG patterns.

Dark previewReplay preview

API Reference

ChartArea

PropTypeDefaultDescription
dataRecord<string, any>[]Series rows.
configChartConfigMap of key → { label, color, icon }.
dataKeystring"value"Single-series row key.
dataKeysstring[]nullMulti-series row keys (overrides dataKey).
xKeystring"date"Row key for the x value.
gradientbooleanfalseFill areas with a gradient instead of a solid color.
stackedbooleanfalseStack multi-series areas.
legendbooleanfalseRender a legend below the chart.
numXTicksnumber6Approximate x-axis tick count.
curveTypestring"natural"Curve interpolation (natural, linear, step, stepAfter, ...).
svgDefsstringnullRaw SVG <defs> string; overrides the auto gradient when set.
areaFillstring | Record<string, string>nullOverride the area fill; string or per-key map (url(#pattern)).
fillOpacitynumbernullFill opacity (defaults adapt to gradient/stacked).
gridbooleanfalseDraw horizontal dashed grid lines.
dashedKeysstring[][]Series keys whose line is rendered dashed.
strokeWidthByKeyRecord<string, number>nullPer-series line width.
lineFilterstringnullSVG filter url applied to the line/area (e.g. a glow).
dotsbooleanfalseRender point markers at each datum.
dotFilterstringnullSVG filter url applied to the dots.
hideYAxisbooleanfalseHide the y axis.
xTickFormatter(d) => stringnullCustom x-axis tick formatter.
yTickFormatter(d) => stringnullCustom y-axis tick formatter.

ChartAreaInteractive

PropTypeDefaultDescription
dataRecord<string, any>[]Series rows (with a date key).
configChartConfigTheming map.
dataKeysstring[]nullSeries to plot (defaults to coloured config keys).
xKeystring"date"Row key for the x value.
titlestring""Optional header title.
descriptionstring""Optional header description.