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 f5e8d21 commit 15d42ebCopy full SHA for 15d42eb
site/static/index.html
@@ -236,21 +236,23 @@
236
237
const interpolatedColorWithAlpha = "#fcb0f15f";
238
239
- ctx.save();
240
ctx.strokeStyle = interpolatedColorWithAlpha;
241
ctx.beginPath();
242
243
- u.data[0].forEach((v, j) => {
+ let [ i0, i1 ] = u.series[0].idxs;
+
244
+ for (let j = i0; j <= i1; j++) {
245
+ let v = u.data[0][j];
246
247
if (isInterpolated(j)) {
248
let cx = Math.round(u.valToPos(v, 'x', true));
249
ctx.moveTo(cx, top);
250
ctx.lineTo(cx, top + height);
251
}
- });
252
+ }
253
254
ctx.closePath();
255
ctx.stroke();
- ctx.restore();
256
},
257
]
258
0 commit comments