Skip to content

@putianyi888/vue3-plots


pointsToSvg<T>(points, scaleX, scaleY): SvgPoint[]

Defined in: utils.ts:158

Filters non-finite points and maps the remaining points into SVG coordinates.

Type Parameters

Type Parameter
T

Parameters

ParameterTypeDescription
pointsPlotPoint<T>[]Data-space points.
scaleXScaleScale used for x coordinates.
scaleYScaleScale used for y coordinates.

Returns

SvgPoint[]

SVG-space points for finite input coordinates.