chart.js Failed to create chart: can’t acquire context from the given item

Another reason to get the same error, is if the element referred by the id is not a <canvas>. I had a <div> element in my HTML source, and of course it did not work.

Leave a Comment