Documentation / @finchart/core / index / PlotModel
Interface: PlotModel
Defined in: packages/core/src/plot/model.ts:41
Properties
plot
plot:
Plot
Defined in: packages/core/src/plot/model.ts:43
The chart itself — state, data, decoration, and plugin APIs, all intact.
Methods
commands()
commands(): readonly
DrawCommand[]
Defined in: packages/core/src/plot/model.ts:50
The draw commands from the last frame. This is the model's output — it includes grid, series, and decorations, down to tick labels and badges. It's plain data, so serializing it, sending it to a worker, and asserting on it as a snapshot are all safe.
Returns
readonly DrawCommand[]