Revenue chart card
A year of monthly revenue as a smooth area and line against last year's dashed line; hover or arrow keys swap the headline for that month with its year-earlier figure and delta, and the numbers count up.
What it is for
Dashboard home or reports page: revenue this year against last (set a height or let it be 344px).
Use it
1 · site.json
"effects": { "components": ["revenue-chart-card"] }or on the command line
node ~/.claude/skills/sitewright/scripts/scaffold.mjs --config site.json --out ./my-site --components revenue-chart-card2 · import it
import { RevenueChartCard } from '@/components/fx/ui';Files
components/fx/ui/RevenueChartCard.tsxcomponents/fx/ui/_bui-chart.tsxcomponents/fx/ui/_bui.tsxcomponents/fx/ui/LICENSE-boardui.txtui-bui-base.cssstylesui-bui-chart.cssstyles
Source
Adapted from BoardUI (MIT). Restyled in plain CSS and rewritten without its libraries; the upstream licence and notice are kept (see THIRD_PARTY_NOTICES.md).
Credits and licences: third-party notices.
Accessibility
- Keyboard. Components in the kit are written to be reached and used with the keyboard. Try it: press Tab inside the preview.
- Reduced motion. With
prefers-reduced-motionon, animation settles to its finished state at once. - Touch. Pointer-follow effects are skipped on touch screens; controls stay finger-sized.