LiveLine
Examples
153.46
Price
API Reference
Types come from the public API. A dash indicates no default is documented here.
LiveLineChart 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 | Show type((events: { readonly _tag: "FocusChanged"; readonly tooltip: { readonly time: number; readonly value: number; readonly x: number; readonly y: number; readonly pinned: boolean; } | null; readonly index: number | null; }) => NoInfer<Msg> | undefined) | { readonly FocusChanged: (event: { readonly _tag: "FocusChanged"; readonly tooltip: { readonly time: number; readonly value: number; readonly x: number; readonly y: number; readonly pinned: boolean; } | null; readonly index: number | null; }) => 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 | readonly { readonly time: number; readonly value: number; }[] | Required | |
props.id | string | Required | |
props.value | number | Required | |
props.ariaLabel | string | Required | |
props.fill | boolean | — | |
props.stroke | string | 'var(--chart-1, #6366f1)' | |
props.height | number | 300 | |
props.margin | Show type{ readonly bottom?: number; readonly left?: number; readonly right?: number; readonly top?: number; } | — | |
props.strokeWidth | number | — | |
props.width | number | — | |
props.paused | boolean | — | |
props.tooltip | boolean | — | |
props.pulse | boolean | — | |
props.dotSize | number | — | |
props.ariaDescription | string | — | |
props.window | number | — | |
props.momentumColors | { readonly up: string; readonly down: string; readonly flat: string; } | — | |
props.yAxisPosition | "left" | "right" | 'left' | |
props.numXTicks | number | — | |
props.nowOffsetUnits | number | — | |
props.exaggerate | boolean | — | |
props.lerpSpeed | number | — | |
props.badge | boolean | — | |
props.valueDecimals | number | 2 | |
props.valuePrefix | string | '' | |
props.axisLabel | string | — | |
props.allowDecimals | boolean | true |