Has anyone tried plotting a line graph using Fabric.js and encountered issues with the fabric.Path? I've noticed that it stops drawing after 8 segments even though I have attempted different methods like loops and individually coding each segment.
const canvas = Controller.Canvas;
line = new fabric.Path('M 90 104', { stroke: 'black', fill: '' });
lastLeft = 90;
for (i = 1; i < 20; i++) {
lastLeft += 20;
line.path[i] = ['L', lastLeft, 104];
}
canvas.add(line);
Despite setting the code to draw a line with 20 segments, it unexpectedly stops at 8. The canvas size is adequate for the task, so I'm puzzled by this limitation.