Waterfall
A start, the steps up and down, subtotals and the end.
$149 once · every Pro piece
Steps up are bone, steps down are hatched grey, subtotals sit quiet and the final total is the one bar in the accent. Faint dashed connectors carry each level across to the next step. On entry the bars pour left to right, each step dropping from the level the previous one left. Point at a bar or step with the arrow keys and the rest step back while a panel reads the change, the running total and the change on the start; an optional level leader runs a quiet dashed line to the axis with the running total in a pill.
Install
npx shadcn@latest add @obsyde/waterfallNeeds your licence key · Get Pro
Usage
Import it from where the CLI puts it, or copy the files below by hand.
import { Waterfall } from '@/components/obsyde/ember/waterfall/Waterfall';
export function Example() {
return (
<Waterfall />
);
}
Files
What you get with Pro: plain React, TypeScript and CSS, with no dependencies.
ember/waterfall/Waterfall.tsxcomponentember/waterfall/waterfall.cssstylesember/waterfall/WaterfallDemo.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/marks.tsxsharedember/viz-kit/Legend.tsxsharedember/viz-kit/Grid.tsxsharedember/viz-kit/demo.tsxsharedember/viz-kit/demo.csssharedember/viz-kit/Axis.tsxshared
API
| Prop | Type | Default |
|---|---|---|
accentAccent | 'ember' | 'volt' | 'arc' | 'ember' |
datasetData | 'bridge' | 'quarters' | 'bridge' |
connectorsConnectors | boolean | true |
levelLevel leader | boolean | false |
legendLegend | 'row' | 'none' | 'row' |
tooltipTooltip | 'panel' | 'none' | 'panel' |
patternPattern | 'none' | 'diagonal-up' | 'diagonal-down' | 'dots' | 'vertical' | 'crosshatch' | 'diagonal-up' |
backgroundBackground | 'grid' | 'dots' | 'none' | 'grid' |
statusStatus | 'ready' | 'loading' | 'empty' | 'ready' |
valueLabelsValue labels | boolean | false |
heightHeight | number | 280 |
seedSeed | number | 2 |