interface ChartHistoryOptions {
    draw?: null | DrawingController;
    limit?: number;
    onError?: (error: ChartHistoryError) => void;
    series?: () => null | SeriesApi;
    setChartType?: (type: string) => unknown;
}

Properties

draw?: null | DrawingController

The drawing controller whose steps join the timeline.

limit?: number

Most steps kept; the oldest go first. Default 100.

onError?: (error: ChartHistoryError) => void

Called when an undo or redo fails.

series?: () => null | SeriesApi

The series whose type and scale are history. Default: the chart's primary series.

setChartType?: (type: string) => unknown

How the chart type is set, so a host's own bookkeeping runs; given a transform's id for a transformed series. Default: on the series.