View as Markdown

API reference: @salmonui/charts/chart

ChartPlotPointinterface

import type { ChartPlotPoint } from '@salmonui/charts/chart';
interface ChartPlotPoint {
    readonly x: number;
    readonly y: number;
    readonly xValue: unknown;
    readonly yValue: unknown;
}

A plot position in drawing px with its data values on the x axis and the first y axis.

ChartPlotPoint members (4)
NameSignatureDescription
xreadonly x: number;
yreadonly y: number;
xValuereadonly xValue: unknown;

A category, a Date (time axes) or a number; undefined before the chart is interactive.

yValuereadonly yValue: unknown;