Charts
Gridline area chart
Gridline area chart: A card-framed area chart with two overlapping filled layers, rounded axis ticks, a faint gridline and a footer line calling out the trend.
Using Gridline area chart
Gridline area chart uses the card preview frame with a light/dark theme setting.
Customize the preview
These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.
| Control | Type | Default | Preview limits |
|---|---|---|---|
trendPercent | number | 8.4 | From 0 to 20; step 0.1 |
trendDirection | select | up | Options: up, down |
primaryColor | color | #FF6A1F | No additional limit in the metadata. |
secondaryColor | color | #38BDF8 | No additional limit in the metadata. |
showGrid | boolean | true | No additional limit in the metadata. |
Which frameworks are available for Gridline area chart?
Gridline area chart is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.
What does Gridline area chart depend on?
The React metadata lists these npm dependencies beyond React: motion, clsx, tailwind-merge.
What accessibility details are visible in Gridline area chart?
The React source for Gridline area chart includes: attributes and handlers (aria-hidden, aria-label, onKeyDown, tabIndex); explicit roles (img); key comparisons (ArrowLeft, ArrowRight, Escape). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Gridline area chart handle reduced motion?
Gridline area chart reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: delay: reduce ? 0 : 0.08; delay: reduce ? 0 : 0.12; delay: reduce ? 0 : 0.22. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.