Skip to content
EliteChart

DataPoint

Documentation


Documentation / @elitechart/core / DataPoint

Defined in: drawing/types.ts:21

A point in data space (time + price). Drawing tools store anchors in data space so they stay pinned across pan / zoom.

Example

code
import { asPrice, asTimestampMs, type DataPoint } from '@elitechart/core';
const p: DataPoint = { time: asTimestampMs(Date.now()), price: asPrice(67_500) };

Properties

price

code
readonly price: Price;

Defined in: drawing/types.ts:23


time

code
readonly time: TimestampMs;

Defined in: drawing/types.ts:22