Skip to content
Menu

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.

ControlTypeDefaultPreview limits
accentColorcolor#38BDF8No additional limit in the metadata.
strokeWidthnumber2From 1 to 4; step 0.5
showGridbooleantrueNo additional limit in the metadata.
animatebooleantrueNo 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.

Connect your agent

Related open components