Candlestick
Examples
API Reference
Types come from the public API. A dash indicates no default is documented here.
CandlestickChart props
Public source| Prop | Type | Default | Description |
|---|---|---|---|
key | KeepAliveKey<K, Ends> | undefined | '' | The child's identity among its parent's children of one component, or a kept child's among its author's. The empty string by default. |
onEmit | ((events: never) => NoInfer<Msg> | undefined) | undefined | — | Handle the child's events with a callback, or supply one handler per tag for tagged events. Return a parent message to dispatch it, or `undefined` to ignore the event. |
props.data | Show typereadonly { readonly date: number; readonly open: number; readonly high: number; readonly low: number; readonly close: number; }[] | Required | |
props.id | string | Required | |
props.ariaLabel | string | Required | |
props.animate | boolean | — | |
props.animationDuration | number | 1100 | |
props.aspectRatio | number | — | |
props.grid | boolean | — | |
props.height | number | — | |
props.margin | Show type{ readonly bottom?: number; readonly left?: number; readonly right?: number; readonly top?: number; } | — | |
props.width | number | — | |
props.tooltip | boolean | — | |
props.responsive | boolean | — | |
props.negativeFill | string | — | |
props.xDomain | readonly [number, number] | — | |
props.yAxis | boolean | — | |
props.positiveFill | string | — | |
props.insideStrokeWidth | number | — | |
props.fadedOpacity | number | — | |
props.xDomainSlotCount | number | — | |
props.candleWidth | number | — | |
props.candleGap | number | — |