Chart States
Loading, empty and ready on one chart instance, crossfading without a remount.
$149 once · every Pro piece
Loading is a shimmering placeholder grid with a pulse travelling along a placeholder curve and a quiet shimmering label, or a diagonal sheen, grey pills or a cell field; empty is a faint baseline, a muted message, a hint and an action. Then the reveal modes on a line and bars: a sweep on one steep ease-in-out curve, a cooling entry that draws in the accent and cools to grey behind the leading edge so only the live point keeps its heat, a fade, or nothing; bars land on springs whose mass grows with value. Finally a data change: the shape morphs in 500ms while the previous one lingers as a 1px ash trace and cools away.
Install
npx shadcn@latest add @obsyde/chart-statesNeeds your licence key · Get Pro
Usage
Import it from where the CLI puts it, or copy the files below by hand.
import { ChartStatesDemo } from '@/components/obsyde/ember/chart-states/ChartStatesDemo';
export function Example() {
return (
<ChartStatesDemo view="cycle" status="loading" auto />
);
}
Files
What you get with Pro: plain React, TypeScript and CSS, with no dependencies.
ember/chart-states/ChartStatesDemo.tsxcomponentember/chart-states/chart-states.cssstylesember/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/Axis.tsxsharedember/viz-kit/annotations.tsxshared
API
| Prop | Type | Default |
|---|---|---|
accentAccent | 'ember' | 'volt' | 'arc' | 'ember' |
viewView | 'cycle' | 'reveal' | 'ghost' | 'cycle' |
statusStatus | 'loading' | 'ready' | 'empty' | 'loading' |
variantLoading | 'pulse' | 'sweep' | 'bars' | 'cells' | 'pulse' |
revealReveal | 'sweep' | 'cool' | 'rise' | 'fade' | 'none' | 'sweep' |
autoAuto cycle | boolean | true |
seedSeed | number | 5 |