0👍
canvas.onmousemove = (evt) => {
docCountChart.update();
var x = evt.pageX - canvas.offsetLeft - 30;
context.beginPath();
context.moveTo(x, 32);
context.lineTo(x, 407);
context.strokeStyle = 'gray';
context.stroke();
context.closePath();
};
- Chartjs-Chartjs annotations-plugin: Can I add multiple vertical lines to identically named x-axis labels?
- Chartjs-Chart.js legend is undefined
Source:stackexchange.com