Charts
Candle Price Chart
Candle Price Chart: An OHLC candlestick chart with up and down colored candles, a wick per period, and a hover tooltip showing open, high, low and close.
Using Candle Price Chart
Candle Price Chart uses the wide preview frame with a 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 |
|---|---|---|---|
upColor | color | #9BE15D | No additional limit in the metadata. |
downColor | color | #FF4D8D | No additional limit in the metadata. |
periodCount | number | 20 | From 8 to 40; step 1 |
showGrid | boolean | true | No additional limit in the metadata. |
Which frameworks are available for Candle Price Chart?
Candle Price Chart 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 Candle Price Chart depend on?
The React metadata lists these npm dependencies beyond React: motion.
What accessibility details are visible in Candle Price Chart?
The React source for Candle Price Chart 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 Candle Price Chart handle reduced motion?
Candle Price Chart reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: delay: reduce ? 0 : Math.min(i * 14, 300) / 1000; duration: reduce ? 0 : 0.46; height: reduce ? c.bodyHeight : 0. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.