(axisDimVal: number, dim: string, dataIndex: number)
| 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(); |
no test coverage detected
searching dependent graphs…