We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a442bc commit 3788e9dCopy full SHA for 3788e9d
src/components/Chart.svelte
@@ -719,10 +719,11 @@
719
ctx.fillStyle = color;
720
ctx.beginPath();
721
for (let i = 0; i < data.length; i++) {
722
- const y = value2y(dataset.getPointValue(i));
723
- if (isNaN(y)) {
+ const ptVal = dataset.getPointValue(i);
+ if (isNaN(ptVal) or ptVal == null) {
724
continue;
725
}
726
+ const y = value2y(ptVal);
727
date1 = date2;
728
date2 = data[i].getDate().getIndex();
729
if (date2 - date1 !== gap) {
0 commit comments