Skip to content

Documentation / @finchart/core / index / BaseDataPoint

Interface: BaseDataPoint ​

Defined in: packages/core/src/data/types.ts:8

The data layer's contract.

This module knows only "what a point is" and "how to pull numbers out of a point." It doesn't import scales, renderers, or the chart.

Extended by ​

Properties ​

label? ​

optional label?: string

Defined in: packages/core/src/data/types.ts:17


x ​

x: number

Defined in: packages/core/src/data/types.ts:16

A number — epoch ms or bar index, either way. Formatting is the axis's job. Why not accept Date or a string: the moment you do, every consumption site owes a conversion, and the workaround (Number(x)) produces a silent NaN. Date data needs one .getTime() at the consumer boundary.