charton API / @chart-on/core / index / DataControllerOptions
Interface: DataControllerOptions
Defined in: packages/core/src/data/controller.ts:36
Options for loading data: bars per first load and per history page, in-memory cache size, gap refetch limit and persistent cache.
Properties
cache
cache:
CacheAdapter|null
Defined in: packages/core/src/data/controller.ts:53
Persistent snapshot store (createIndexedDbCache, createMemoryCache or your own): the last window of each symbol and interval paints at once on the next load while the source is asked as usual. Default none.
cacheSize
cacheSize:
number
Defined in: packages/core/src/data/controller.ts:42
Symbol and interval combinations kept in memory.
initialBars
initialBars:
number
Defined in: packages/core/src/data/controller.ts:38
Bars requested on the first load of a symbol and interval, plus the target's lookback.
maxGapFillSeconds
maxGapFillSeconds:
number
Defined in: packages/core/src/data/controller.ts:47
Longest outage, in seconds, whose missed bars are refetched when the source reconnects. A longer one emits data:stale instead.
pageBars
pageBars:
number
Defined in: packages/core/src/data/controller.ts:40
Bars requested per page of older history.