useBarReplay

Bar replay: hides bars after a start index and reveals them one by one (play, pause, step, step back, speed).

import { useBarReplay } from "@reincharts/datafeed";

Bar replay: hides bars after a start index and reveals them one by one (play, pause, step, step back, speed). Returns the visible slice as data plus the controls.

Signature

function useBarReplay<T>(data: readonly T[], options?: UseBarReplayOptions): UseBarReplayResult<T>

UseBarReplayOptions

Options of useBarReplay.

Prop

Type

UseBarReplayResult

State and controls returned by useBarReplay.

Prop

Type

See also

On this page