MCPcopy
hub / github.com/apache/echarts / getPoint

Function getPoint

src/chart/boxplot/boxplotLayout.ts:157–171  ·  view source on GitHub ↗
(axisDimVal: number, dim: string, dataIndex: number)

Source from the content-addressed store, hash-verified

155 }
156
157 function getPoint(axisDimVal: number, dim: string, dataIndex: number) {
158 const val = data.get(dim, dataIndex) as number;
159 const p = [];
160 p[cDimIdx] = axisDimVal;
161 p[vDimIdx] = val;
162 let point;
163 if (isNaN(axisDimVal) || isNaN(val)) {
164 point = [NaN, NaN];
165 }
166 else {
167 point = coordSys.dataToPoint(p);
168 point[cDimIdx] += offset;
169 }
170 return point;
171 }
172
173 function addBodyEnd(ends: number[][], point: number[], start?: boolean) {
174 const point1 = point.slice();

Callers 1

layoutSingleSeriesFunction · 0.70

Calls 2

dataToPointMethod · 0.65
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…