Resolve one chart to plain data the renderer draws without reading cells.
Values that are not numbers (text, booleans, errors, empty cells) become
null. Each series range costs one bulk window read of at most
MAX_CHART_POINTS cells. Returns null when the chart does not exist.
Call it after a subscribeChartChanges event names the chart, not per frame.
Declaration
function resolveChartView (
Referenced by
Workspace packages depending on @sheetwrite/core
@sheetwrite/benchdependency
@sheetwrite/chartsdependency
@sheetwrite/docs-startdependency
@sheetwrite/reactdependency
@sheetwrite/sveltedependency
@sheetwrite/vuedependency
@sheetwrite/xlsxdependency
Public exports naming resolveChartView
interface Store {
getWorkbook(): Workbook;
getCell(addr: CellAddress): ResolvedCell;
getFormula(addr: CellAddress): string | null;
getSpillAnchor(addr: CellAddress): CellAddress | null;
getRefTarget(addr: CellAddress): CellAddress | null;
recalculateVolatile(now?: Date): void;
getVisibleWindow(
sheet: SheetId,
rows: { start: number; end: number },
cols: readonly number[],
): VisibleWindowView;
getDataWindow?(
sheet: SheetId,
rows: { start: number; end: number },
// … 27 more lines — see the API reference
} interface Store {
getWorkbook () : Workbook ;
getCell ( addr : CellAddress ) : ResolvedCell ;
getFormula ( addr : CellAddress ) : string | null ;
getSpillAnchor ( addr : CellAddress ) : CellAddress | null ;
getRefTarget ( addr : CellAddress ) : CellAddress | null ;
recalculateVolatile ( now ?: Date ) : void ;
getVisibleWindow (
sheet : SheetId ,
rows : { start : number ; end : number },
cols : readonly number [],
) : VisibleWindowView ;
getDataWindow ? (
sheet : SheetId ,
rows : { start : number ; end : number },
// … 27 more lines — see the API reference
} interface Store {
getWorkbook () : Workbook ;
getCell (
addr : CellAddress ,
) : ResolvedCell ;
getFormula (
addr : CellAddress ,
) : string | null ;
getSpillAnchor (
addr : CellAddress ,
) : CellAddress | null ;
getRefTarget (
addr : CellAddress ,
) : CellAddress | null ;
recalculateVolatile (
now ?: Date ,
) : void ;
getVisibleWindow (
sheet : SheetId ,
// … 60 more lines — see the API reference
} Columnar workbook storage, query, transaction, and subscription contract. API reference → type SheetId = string; type SheetId = string ; type SheetId = string ; Stable identifier used to address a workbook sheet. API reference → interface ChartView {
chart: ChartDefinition;
series: ChartSeriesView[];
} interface ChartView {
chart : ChartDefinition ;
series : ChartSeriesView [];
} interface ChartView {
chart : ChartDefinition ;
series : ChartSeriesView [];
} One immutable-by-convention rendering input, refreshed on chart-change events. API reference →