Uncaught Error: Canvas is already in use.
-
I’m using a list of Donut Charts to be rendered in a single page (6 donuts to be exact), I’ve used the respective shorcodes generated from Visualizer and when I visit the single page for the first time the charts are displayed correctly, however when the page is reloaded the charts aren’t being displayed and a javascript error is gotten in the console with the following statement:
Uncaught Error: Canvas is already in use. Chart with ID '0' must be destroyed before the canvas can be reused. at new an (chartjs.min.js:13:90002) at renderSpecificChart (render-chartjs.js?ver=3.7.12:116:23) at renderChart (render-chartjs.js?ver=3.7.12:13:9) at HTMLBodyElement.<anonymous> (render-chartjs.js?ver=3.7.12:482:13) at HTMLBodyElement.dispatch (jquery.min.js?ver=3.6.0:2:43064) at v.handle (jquery.min.js?ver=3.6.0:2:41048) at Object.trigger (jquery.min.js?ver=3.6.0:2:71515) at HTMLBodyElement.<anonymous> (jquery.min.js?ver=3.6.0:2:72110) at Function.each (jquery.min.js?ver=3.6.0:2:3003) at s.fn.init.each (jquery.min.js?ver=3.6.0:2:1481) chartjs.min.js:13 Uncaught Error: Canvas is already in use. Chart with ID '1' must be destroyed before the canvas can be reused. at new an (chartjs.min.js:13:90002) at renderSpecificChart (render-chartjs.js?ver=3.7.12:116:23) at renderChart (render-chartjs.js?ver=3.7.12:13:9) at HTMLBodyElement.<anonymous> (render-chartjs.js?ver=3.7.12:482:13) at HTMLBodyElement.dispatch (jquery.min.js?ver=3.6.0:2:43064) at v.handle (jquery.min.js?ver=3.6.0:2:41048) at Object.trigger (jquery.min.js?ver=3.6.0:2:71515) at HTMLBodyElement.<anonymous> (jquery.min.js?ver=3.6.0:2:72110) at Function.each (jquery.min.js?ver=3.6.0:2:3003) at s.fn.init.each (jquery.min.js?ver=3.6.0:2:1481)
When I try to reload the page, sometimes charts are displayed and sometimes not, however the js error persist in the console.
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Uncaught Error: Canvas is already in use.’ is closed to new replies.