charton API / @chart-on/core / index / SetDataOptions
Interface: SetDataOptions
Defined in: packages/core/src/series.ts:101
Options for setData.
Properties
keepVisibleRange?
optionalkeepVisibleRange?:boolean
Defined in: packages/core/src/series.ts:115
On the main series (the one that sets the time axis): keep the visible start and end times when the new bars cover them. Otherwise the view keeps its distance from the newest bar, so a longer or shorter series shifts the times in view. Ignored on other series.
normalize?
optionalnormalize?:boolean
Defined in: packages/core/src/series.ts:108
Sort by time and keep the last of equal times instead of throwing on unsorted or duplicate times; candles also drop invalid bars. Each item left out is reported through data:dropped. A time that is not a finite number still throws.