Skip to content

@putianyi888/vue3-plots


pointToSvg<T>(point, scaleX, scaleY): SvgPoint

Defined in: utils.ts:143

Maps one data-space point into SVG coordinates with precomputed scales.

Type Parameters

Type Parameter
T

Parameters

ParameterTypeDescription
pointPlotPoint<T>Data-space point.
scaleXScaleScale used for the x coordinate.
scaleYScaleScale used for the y coordinate.

Returns

SvgPoint

The point in SVG coordinates.