We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f24b46a commit eb7a2e1Copy full SHA for eb7a2e1
src/charting/renderer/LineChartRenderer.ts
@@ -282,11 +282,10 @@ export class LineChartRenderer extends LineRadarRenderer {
282
if (cur == null) return [];
283
284
const float32arr = this.mLineBuffer;
285
- float32arr[0] = cur[xKey];
286
- float32arr[1] = cur[yKey] * phaseY;
+ let index = 0;
+ float32arr[index++] = cur[xKey];
287
+ float32arr[index++] = cur[yKey] * phaseY;
288
// let the spline start
- // outputPath.moveTo(cur[xKey], cur[yKey] * phaseY);
289
- let index = 2;
290
for (let j = firstIndex + 1; j <= lastIndex; j++) {
291
const newEntry = dataSet.getEntryForIndex(j);
292
if (newEntry[yKey] === undefined || newEntry[yKey] === null) {
0 commit comments