1👍
This is because you are trying to read the canvas before the ami,mations and draws are finished, you either need to set the animations to false or use the onAnimationComplete callback:
options: {
animations: false
}
options: {
animations: {
onComplete: ({initial}) => {
if (initial) savechart();
}
}
}
- Chartjs-Remove data text from Chart.js on hover
- Chartjs-Cross-Origin Read Blocking (CORB) blocked cross-origin response https://cdnjs.com/libraries/Chart.js
Source:stackexchange.com