Area Chart
A smooth line over a surface that fades to nothing beneath it.
$149 once · every Pro piece
Scrub with a pointer, a finger or the arrow keys: a hairline snaps to the nearest point, a hot dot rides the line, the stretch round the cursor stays bright while the rest dims, and the big readout top-left rolls to the value with heavier digits in the higher places. New data morphs over half a second. Optional layers: the kiln sky (a warm glow rising off the line), gradient, solid or hatched fills, a trend line, a projection with a widening cone, a Bollinger envelope or a band of normal, dashed min, max and average lines with pills, a threshold past which the line runs hot, event badges and sparks that ping as the crosshair passes, an afterglow that marks where you scrubbed, a dashed previous period with the change in the readout, drag-to-select a span, a brush strip, a live stream with a pilot light, and loading and empty states.
Install
npx shadcn@latest add @obsyde/area-chartNeeds your licence key · Get Pro
Usage
Import it from where the CLI puts it, or copy the files below by hand.
import { AreaChart } from '@/components/obsyde/ember/area-chart/AreaChart';
export function Example() {
return (
<AreaChart />
);
}
Files
What you get with Pro: plain React, TypeScript and CSS, with no dependencies.
ember/area-chart/AreaChart.tsxcomponentember/area-chart/area-chart.cssstylesember/area-chart/AreaChartDemo.tsxdemoember/viz-kit/viz-kit.csssharedember/viz-kit/Tooltip.tsxsharedember/viz-kit/focus.tssharedember/viz-kit/patterns.tsxsharedember/viz-kit/roll.tssharedember/shared/rolling-number.csssharedember/shared/spring.tssharedember/shared/accent.tssharedember/viz-kit/scale.tssharedember/viz-kit/motion.tssharedember/viz-kit/chart.tsxsharedember/shared/ember.csssharedember/viz-kit/touch.tssharedember/viz-kit/keyboard.tssharedember/viz-kit/size.tssharedember/viz-kit/States.tsxsharedember/viz-kit/shape.tssharedember/viz-kit/series.tsxsharedember/viz-kit/Grid.tsxsharedember/viz-kit/demo.tsxsharedember/viz-kit/demo.csssharedember/viz-kit/Brush.tsxsharedember/viz-kit/Axis.tsxsharedember/viz-kit/annotations.tsxshared
API
| Prop | Type | Default |
|---|---|---|
accentAccent | 'ember' | 'volt' | 'arc' | 'ember' |
rangeSwitchRange switch | boolean | false |
readoutReadout | 'corner' | 'tooltip' | 'corner' |
fillFill | 'gradient' | 'solid' | 'pattern' | 'none' | 'gradient' |
skyKiln sky | boolean | false |
glowGlow | boolean | false |
markersMarkers | 'none' | 'ring' | 'dot' | 'none' |
trendTrend | 'none' | 'dashed' | 'gradient' | 'none' |
projectionProjection | 'none' | 'regression' | 'target' | 'none' |
bandEnvelope | boolean | false |
bandRangeBand of normal | boolean | false |
refLinesReference lines | 'none' | 'min-max' | 'avg' | 'median' | 'all' | 'none' |
thresholdThreshold | 'none' | 'above' | 'below' | 'none' |
thresholdValueThreshold value | number | 70 |
annotationsAnnotations | boolean | false |
sparksSparks | boolean | false |
afterglowAfterglow | boolean | false |
compareCompare | boolean | false |
tailDashed tail | boolean | false |
selectionSelect a span | boolean | false |
brushBrush zoom | boolean | false |
yTicksY ticks | number | 4 |
showAxisAxes | boolean | true |
tooltipTooltip | 'none' | 'panel' | 'corner' | 'none' |
crosshairCrosshair | 'solid' | 'dashed' | 'gradient' | 'none' | 'solid' |
dotsDots | 'halo' | 'ring' | 'none' | 'halo' |
patternPattern | 'none' | 'diagonal-up' | 'diagonal-down' | 'dots' | 'vertical' | 'crosshatch' | 'none' |
backgroundBackground | 'grid' | 'dots' | 'hatch' | 'none' | 'grid' |
curveCurve | 'monotone' | 'linear' | 'catmull' | 'step' | 'monotone' |
revealReveal | 'sweep' | 'cool' | 'rise' | 'fade' | 'none' | 'sweep' |
statusStatus | 'ready' | 'loading' | 'empty' | 'ready' |
valueLabelsValue labels | boolean | false |
liveLive | boolean | false |
heightHeight | number | 220 |
pointsPoints | number | 30 |
seedSeed | number | 7 |