Charts
Plain trend line
Plain trend line: A minimal single series line chart with a smooth undecorated curve and no point markers, kept as bare and legible as a trend line can be.
Using Plain trend line
Plain trend line 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 |
|---|---|---|---|
accentColor | color | #38BDF8 | No additional limit in the metadata. |
strokeWidth | number | 2 | From 1 to 4; step 0.5 |
showGrid | boolean | true | No additional limit in the metadata. |
animate | boolean | true | No additional limit in the metadata. |
Which frameworks are available for Plain trend line?
Plain trend line 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 Plain trend line depend on?
The React metadata lists these npm dependencies beyond React: motion.
What accessibility details are visible in Plain trend line?
The React source for Plain trend line includes: attributes and handlers (aria-hidden, aria-label, aria-live, onKeyDown, tabIndex); explicit roles (img); key comparisons (ArrowLeft, ArrowRight, End, Escape, Home). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Plain trend line handle reduced motion?
Plain trend line reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: duration: animate && !reduce ? 0.5 : 0. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.