1👍
You define 2 myChart. So your first declaration stay empty 😉
Re-assign your variable, don’t make a new who stay in your init function scope.
function init(){
myChart = new Chart(ctx, {
...
});
}
- Chartjs-Multiple charts js in page but with same tooltips (about last chart)
- Chartjs-Chart js scatter – display label on hover
Source:stackexchange.com