Skip to content

Area Chart ^0.1.15 ​

Line chart with filled area. Supports single series, stacked multi-series, percent-stacked (100%), step mode, and threshold lines.

Basic ​

8.1622.083649.9263.84JanFebMarAprMayJunJulAugSepOctNovDec
vue
<VxAreaChart :data="data" :labels="labels" />

Stacked ​

054108162216JanFebMarAprMayJunJulAugSepOctNovDec
Desktop
Mobile
Tablet
vue
<VxAreaChart :data="series" :labels="labels" stacked legend />

Percent stacked ^0.1.15 ​

Normalize to 100% at every point — useful for composition analysis.

34%52%69%87%105%JanFebMarAprMayJunJulAugSepOctNovDec
Organic
Paid
Social
Referral
vue
<VxAreaChart :data="series" :labels="labels" percentStacked legend />

Reference line ^0.1.15 ​

8.1622.083649.9263.84TargetJanFebMarAprMayJunJulAugSepOctNovDec
vue
<VxAreaChart
  :data="data"
  :labels="labels"
  :references="[{ value: 40, label: 'Target', color: '#22c55e' }]"
/>

Step mode ^0.1.15 ​

8.1622.083649.9263.84JanFebMarAprMayJunJulAugSepOctNovDec
vue
<VxAreaChart :data="data" :labels="labels" step color="#06b6d4" />

Straight segments ​

8.1622.083649.9263.84JanFebMarAprMayJunJulAugSepOctNovDec
vue
<VxAreaChart :data="data" :labels="labels" :smooth="false" color="#f59e0b" />

Custom opacity ​

opacity 0.2
8.1622.083649.9263.84JanFebMarAprMayJunJulAugSepOctNovDec
opacity 0.9
8.1622.083649.9263.84JanFebMarAprMayJunJulAugSepOctNovDec

KPI card ​

Revenue
$182,480
▲ 24% vs last period

Live / reactive ​

18.424.23035.841.60123456

API ​

Data shape ​

ts
type AreaChartData =
  | number[]
  | AreaChartPoint[]          // { x, y }
  | AreaChartSeries[]         // { name, data, color? }

interface AreaChartReference {
  value: number
  label?: string
  color?: string
  dashed?: boolean  // default true
}

Props ​

PropTypeDefaultDescription
dataAreaChartData[]Single or multi-series
labels(string|number)[][]X-axis labels
heightnumber260Chart height
stackedbooleanfalseStack series on top of each other
percentStackedbooleanfalseNormalize stacks to 100%
stepbooleanfalseStep-line mode
smoothbooleantrueSmooth cubic bezier curves
opacitynumber0.6Area fill opacity
referencesAreaChartReference[][]Horizontal threshold lines
colorstring—Single-series color
colorsstring[]—Multi-series palette
strokeWidthnumber2Line stroke thickness
gridbooleantrueHorizontal grid
axisbooleantrueAxis labels
tooltipbooleantrueHover tooltip
legendbooleanfalseLegend below chart
animatebooleantrueAnimated transitions
animationDurationnumber900Tween duration in ms
yTicksnumber4Number of y-axis ticks
min / maxnumberautoForce y bounds
formatValue(v) => stringabbreviates 1.2kValue formatter

Events ​

EventPayload
hover{ seriesIndex, pointIndex, value }
click{ seriesIndex, pointIndex, value }