Skip to content
Menu

Charts

Animated Time Axis

Animated Time Axis: A row of date labels beneath a line chart that auto-picks an evenly spaced subset to avoid crowding, and fades labels near the hovered point.

Using Animated Time Axis

Animated Time Axis 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
numTicksnumber5From 3 to 9; step 1
fadeNearCursorbooleantrueNo additional limit in the metadata.
accentcolor#38BDF8No additional limit in the metadata.
Which frameworks are available for Animated Time Axis?

Animated Time Axis 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 Animated Time Axis depend on?

The React metadata lists these npm dependencies beyond React: motion, clsx, tailwind-merge.

What accessibility details are visible in Animated Time Axis?

The React source for Animated Time Axis includes: attributes and handlers (aria-hidden, aria-label, 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 Animated Time Axis handle reduced motion?

Animated Time Axis reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: reduce ? { left: { duration: 0 }, opacity: { duration: 0 } } : { left: { type: "spring", stiffness: 340, damping: 32 }, opacity: { duration: 0.22 } }. 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