MCPcopy Index your code
hub / github.com/ChartGPU/ChartGPU / getXY

Function getXY

src/data/sampleSeries.ts:8–11  ·  view source on GitHub ↗
(point: DataPoint)

Source from the content-addressed store, hash-verified

6}
7
8function getXY(point: DataPoint): { readonly x: number; readonly y: number } {
9 if (isTupleDataPoint(point)) return { x: point[0], y: point[1] };
10 return { x: point.x, y: point.y };
11}
12
13function getSize(point: DataPoint): number | undefined {
14 if (isTupleDataPoint(point)) return point[2];

Callers 1

sampleByBucketsFunction · 0.85

Calls 1

isTupleDataPointFunction · 0.70

Tested by

no test coverage detected