Skip to content
Menu

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.

ControlTypeDefaultPreview limits
accentcolor#FF4D8DNo additional limit in the metadata.
labelSizenumber12From 10 to 16; step 1
dotRadiusnumber4From 2 to 8; step 1
strokeWidthnumber2From 1 to 4; step 0.5
showGridbooleantrueNo 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.

Connect your agent

Related open components