Skip to content

Commit eb7a2e1

Browse files
committedSep 27, 2020
chore: refactoring
1 parent f24b46a commit eb7a2e1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed
 

‎src/charting/renderer/LineChartRenderer.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -282,11 +282,10 @@ export class LineChartRenderer extends LineRadarRenderer {
282282
if (cur == null) return [];
283283

284284
const float32arr = this.mLineBuffer;
285-
float32arr[0] = cur[xKey];
286-
float32arr[1] = cur[yKey] * phaseY;
285+
let index = 0;
286+
float32arr[index++] = cur[xKey];
287+
float32arr[index++] = cur[yKey] * phaseY;
287288
// let the spline start
288-
// outputPath.moveTo(cur[xKey], cur[yKey] * phaseY);
289-
let index = 2;
290289
for (let j = firstIndex + 1; j <= lastIndex; j++) {
291290
const newEntry = dataSet.getEntryForIndex(j);
292291
if (newEntry[yKey] === undefined || newEntry[yKey] === null) {

0 commit comments

Comments
 (0)
Please sign in to comment.