your stack trace tells me that either ctx or chartdata is undefined. my guess is that it's ctx if you've already checked chartdata. (verify this using console.log.) perhaps this is the answer if that's the case: canvas.getcontext("2d") is undefined

if that's not the case, then an element that chartjs was looking for in your json was undefined. you'll have to look through the documentation to see what element is missing if that's the case.

Related Query

More Query from same tag