Charts
Named point line
Named point line: A line across five categories that prints each category name above its point instead of a number, leaving the value to the hover readout.
Using Named point line
Named point line uses the wide 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 |
|---|---|---|---|
accent | color | #FF4D8D | No additional limit in the metadata. |
labelSize | number | 12 | From 10 to 16; step 1 |
dotRadius | number | 4 | From 2 to 8; step 1 |
strokeWidth | number | 2 | From 1 to 4; step 0.5 |
showGrid | boolean | true | No additional limit in the metadata. |
Which frameworks are available for Named point line?
Named point 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 Named point line depend on?
The React metadata lists these npm dependencies beyond React: motion, clsx, tailwind-merge.
What accessibility details are visible in Named point line?
The React source for Named point 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 Named point line handle reduced motion?
Named point line reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: delay: !reduce && !revealed ? `${i * STEP_MS}ms` : "0ms"; duration: reduce ? 0 : LINE_MS / 1000; pathLength: reduce ? 1 : 0. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.