Skip to content
LoidoltTheme 0.11.1
Svelte 5

Component

CandlestickChart

Open, high, low and close per period, with optional volume and zoom.

import { CandlestickChart } from '@loidolt/theme-charts';

Example

Birch ply price per sheet

Candlestick chart of 8 periods, Mar 3 to Mar 12. Opened at $20.10 and closed at $23.80 (+18.4%), trading between $19.80 and $24.60.

Notes

  • Rises and falls take the gain and loss tokens; pass upColor and downColor for markets that use the opposite convention.

Props

Generated from the component source, so it cannot drift from the implementation.

CandlestickChart props
PropTypeDefaultNotes
data required CandlestickDatum[]—One open, high, low and close per period, optionally with volume.
tableLabels { dateLabel?: string; openLabel?: string; highLabel?: string; lowLabel?: string; closeLabel?: string; volumeLabel?: string; }{}Headings of the data table columns.

Plus the attributes of Omit<ComponentProps<typeof Chart>, 'option' | 'table' | 'extensions'>andCandlestickOptions, forwarded to the root element.