Skip to contentKino
Skip to Content

Area chart

Values over time as filled areas, overlapping, stacked or as shares, or as a band between two values. The day under the pointer stays bright while the rest steps back, and a new range grows out of the areas that were there.

npx shadcn add https://kinoui.com/r/area-chart.json
Share on

Examples

Notes saved

Every note the Kino team saved, by what it holds.
Yesterday768
CategoryTextPhotosVoice
Fri 16 October502240130
Sat 17 October31513794
Sun 18 October35514986
Mon 19 October519252151
Tue 20 October495235144
Wed 21 October603267160
Thu 22 October577267141
Fri 23 October619275149
Sat 24 October38618789
Sun 25 October40816285
Mon 26 October622248168
Tue 27 October516262157
Wed 28 October612256153
Thu 29 October576259143
Fri 30 October632311155
Sat 31 October396200101
Sun 1 November42518799
Mon 2 November609280163
Tue 3 November632262163
Wed 4 November611296146
Thu 5 November559284156
Fri 6 November700299155
Sat 7 November400221119
Sun 8 November463189124
Mon 9 November719324163
Tue 10 November661283170
Wed 11 November677305184
Thu 12 November701300165
Fri 13 November615341159
Sat 14 November452197119

Layouts

Areas overlap, stack or stack as shares with stack, and a new range, layout or hidden series moves each area from where it is. The day under the pointer stays bright while the rest steps back.

Notes written

The first two weeks of November.
CategoryNotes written
Sun 1 November153
Mon 2 November331
Tue 3 November343
Wed 4 November368
Thu 5 November362
Fri 6 November298
Sat 7 November113
Sun 8 November125
Mon 9 November332
Tue 10 November264
Wed 11 November269
Thu 12 November284
Fri 13 November368
Sat 14 November155

Photos added

The first two weeks of November.
CategoryPhotos added
Sun 1 November70
Mon 2 November111
Tue 3 November108
Wed 4 November116
Thu 5 November100
Fri 6 November130
Sat 7 November67
Sun 8 November61
Mon 9 November90
Tue 10 November104
Wed 11 November95
Thu 12 November115
Fri 13 November129
Sat 14 November53

Synced

Charts in a ChartGroup share the day under the pointer or the focus, by its key.

Storage

What the team’s notes take up, against the plan’s 75 GB.
CategoryStorage
January 202618.4 GB
February 202621.9 GB
March 202624.2 GB
April 202629.8 GB
May 202633.1 GB
June 202634.6 GB
July 202638.9 GB
August 202644.7 GB
September 202647.2 GB
October 202652.8 GB
November 202657.5 GB

Single

One area with a reference line, its fill fading from its peak.

Sync time

How long a note took to reach every device yesterday, from the median to the 95th percentile.
CategoryMedian to 95th
00:00190 ms – 375 ms
02:00212 ms – 395 ms
04:00182 ms – 365 ms
06:00196 ms – 352 ms
08:00208 ms – 361 ms
10:00248 ms – 411 ms
12:00231 ms – 447 ms
14:00240 ms – 472 ms
16:00230 ms – 466 ms
18:00183 ms – 377 ms
20:00214 ms – 396 ms
22:00200 ms – 351 ms

Band

A value given as [from, to] draws a band between the two, and both ends are marked while lit.

Credits balance

Kino AI credits left at the start of each month.
CategoryBalance
January 20261,200
February 2026640
March 2026-380
April 2026-920
May 2026-260
June 2026480
July 20261,340
August 20262,100

Below zero

Below zero, the area fills up to the zero line.

Installation

npx shadcn@latest add https://kinoui.com/r/area-chart.json
Files
lib/reduce-motion.tslib/scroll.tslib/refs.tslib/resize.tslib/swap.tsxlib/popup.tslib/glide.tsxcomponents/kino/tooltip.tsxlib/cut.tsxlib/announce.tsxcomponents/kino/spinner.tsxcomponents/kino/button.tsxlib/chart-math.tslib/controllable.tslib/number-format.tslib/chart-core.tsxlib/run-progress.tslib/highlight.tscomponents/kino/chart.tsxlib/line-path.tslib/area-fill.tsxlib/placeholder.tslib/chart-line.tsxcomponents/kino/area-chart.tsx
Packages
@base-ui/reactclass-variance-authorityd3-arrayd3-shape

New to Kino? Installation covers what your project needs first and the @kino namespace.

The CLI keeps any of these colours your project already has, such as the chart colours shadcn init writes. To use Kino’s, set them in your global CSS:

globals.css
:root {  --chart-1: oklch(0.62 0.16 250);  --chart-2: oklch(0.54 0.18 257);  --chart-3: oklch(0.47 0.21 263);  --chart-4: oklch(0.4 0.19 268);  --chart-5: oklch(0.33 0.15 272);}.dark {  --chart-1: oklch(0.82 0.09 245);  --chart-2: oklch(0.74 0.13 250);  --chart-3: oklch(0.67 0.17 257);  --chart-4: oklch(0.61 0.19 263);  --chart-5: oklch(0.55 0.2 268);}

API reference

AreaChart

PropTypeDefaultDescription
dataChartDatum[]NoneOne row per category: the category under index, and a value under each series’ key, or [from, to] for a band. A missing value leaves a gap, or counts as nothing when the areas stack.
indexstringNoneThe key of each row’s category.
configChartConfigNoneEach series by its key: its label, its color (or theme for light and dark), and its stack group. shadcn’s chart config works as it is.
labelstringNoneWhat the chart shows, for screen readers, such as “Visitors by month”.
descriptionstringNoneA longer account for screen readers, such as the trend.
formatIntl.NumberFormatOptions(value: number) => stringNoneHow values are written in the tooltip, the labels, the table and, shortened, the value axis.
categoryFormat(value: unknown) => stringStringHow a category is written.
localeIntl.LocalesArgumentNoneThe locale numbers are written in. Give one, so the server and the browser agree.
orderedbooleanfalseThe categories run in order, such as days, so the tooltip gives each value’s change since the one before.
domain[number | 'auto', number | 'auto']['auto', 'auto']The ends of the value axis; auto fits the data and rounds out to a tick.
tickCountnumber5About how many ticks the value axis marks; fewer when the axis is short.
tickValuesnumber[]NoneThe ticks to mark, in place of round ones.
allowDecimalsbooleanNoneTicks between whole numbers; off when every value is whole.
hiddenSeriesstring[]NoneThe series hidden, with defaultHiddenSeries and onHiddenSeriesChange.
activeIndexnumber | nullNoneThe category under the pointer or the focus, with defaultActiveIndex and onActiveIndexChange.
selectedstring | nullNoneThe category picked, by its key, with defaultSelected and onSelectedChange. Giving any of them lets a press pick one.
loadingbooleanfalseShows a placeholder; the marks grow out of it when the data arrives.
errorReactNodeNonetrue for the chart’s own words, or what to say.
onRetry() => voidNoneAdds a Try again button beside the error.
emptyReactNodeNoneWhat shows when data is empty.
messagesPartial<ChartMessages>NoneEvery word the chart says or reads out, for another language.
stack'none''stacked''expand''none'Each area from zero, overlapping; stacked; or stacked as shares of their total. Series with the same stack in the config stack together.
entrance'none''rise''draw''none'How the areas arrive the first time the chart comes into view: rising from zero, or drawn along from the start. None by default, since a page that loads doesn’t animate into place.

Area

PropTypeDefaultDescription
dataKeystringNoneThe key of the series’ values in the data and in the config.
curve'monotone''linear''step''monotone'A smooth curve that never overshoots its points, straight lines, or steps.
dotsboolean'last'falseMarks every point with a dot, not only the lit one; last marks only the last value, with a solid dot.

Data attributes

AttributeOnDescription
data-dimAn area’s line, fill and dotsIt steps back while another day or series is brought forward.

CSS variables

VariableSet it onDefaultDescription
--area-chart-widthAreaChart, or anything above it2pxHow thick the line along each area’s top is.
--area-chart-fill-topAreaChart, or anything above it0.32How strong the fill is at an area’s peak, from 0 to 1.
--area-chart-fill-bottomAreaChart, or anything above it0.04How strong the fill is at the bottom of the plot, from 0 to 1.
--area-chart-dimAreaChart, or anything above it0.3How much colour an area that steps back keeps. Its fill also fades, so it reads behind the lit one.
--area-chart-window-fadeAreaChart, or anything above it1.5remHow far the bright stretch around the lit day fades into the area that stepped back.

Accessibility

  • The plot is one stop in the tab order: a slider over the categories. The arrow keys step, Home and End go to the ends, and each category’s values are read as the slider’s value.
  • A hidden table holds every value, for screen readers and for copying.
  • Loading, an error and new data are announced in a status region.
  • Each area has its line along its top, so overlapping areas read apart where their fills meet. Forced colours draw each series in a system colour.
  • When the system asks for less motion, areas move to their place at once and only fade.