Skip to content

Commit adafd84

Browse files
committed
fix: cubic line rendering
1 parent c22cd35 commit adafd84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/charting/renderer/LineChartRenderer.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ export class LineChartRenderer extends LineRadarRenderer {
238238
// this.cubicPath.cubicTo(cpx, prev[yKey] * phaseY, cpx, cur[yKey] * phaseY, cur[xKey], cur[yKey] * phaseY);
239239
}
240240
const points = Utils.pointsFromBuffer(float32arr);
241-
outputPath.setCubicLines(points, index);
241+
outputPath.setCubicLines(points, 0, index);
242242
return [points, index];
243243
} else {
244244
outputPath.reset();
@@ -314,7 +314,7 @@ export class LineChartRenderer extends LineRadarRenderer {
314314
}
315315
const points = Utils.pointsFromBuffer(float32arr);
316316
// console.log('generateCubicPath', index, points.length);
317-
outputPath.setCubicLines(points, index);
317+
outputPath.setCubicLines(points, 0, index);
318318
return [points, index];
319319
} else {
320320
outputPath.reset();

0 commit comments

Comments
 (0)