Velocity X Components

Stats & Numbers

Stacked Area Mini Chart

A compact dashboard-cell chart that stacks two or three series over time — traffic by channel, revenue by segment, tickets by priority — so composition and total trend read together without needing a full-width chart section.

Subscription Included with the Velocity Components subscription.
bash
$ velocityx add stacked-area-mini-chart

Built for astro.

Full docs for Stacked Area Mini Chart →

Needs a licence key — subscribe here, then velocityx loginonce.

astro v1.0.1
Stacked Area Mini Chart
Sessions by channel
Apr Oct
  • Organic 24
  • Paid 13
  • Referral 6
Sessions by channel — exact values
Period OrganicPaidReferral
Apr 1263
May 1473
Jun 1594
Jul 1894
Aug 20115
Sep 22125
Oct 24136

Props

NameTypeRequiredDefaultDescription
titlestringNo'Sessions by channel'
xLabelsstring[]No['Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct']
seriesStackedSeries[]No[ { name: 'Organic', points: [12, 14, 15, 18, 20, 22, 24] }, { name: 'Paid', points: [6, 7, 9, 9, 11, 12, 13] }, { name: 'Referral', points: [3, 3, 4, 4, 5, 5, 6] }, ]
classNamestringNo''

File this creates

The CLI writes this path into your project, relative to its root — nothing else moves.

text
components/velocity/stacked-area-mini-chart/StackedAreaMiniChart.astro

Using the Stacked Area Mini Chart component

Install it with velocityx add stacked-area-mini-chart. The CLI writes the source straight into your project — no runtime dependency, no registry lock-in, and it themes itself from the same primary-*/accent-* scale as the rest of the library.

More from Stats & Numbers.