• Resolved alejandromarin

    (@alejandromarin)


    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)
  • Hi @alejandromarin,

    Thanks for choosing Visualizer!

    I tried to replicate this on my instance but everything is working properly for me. I’ve added 6 donut charts on a page and even more than 6 on another and I don’t get any errors, the charts are properly displayed for me. Please provide us the URL to a page where we can see this issue.

    Thank you!

    Thread Starter alejandromarin

    (@alejandromarin)

    @luciamarinescu Here is the URL to check the issue: https://fortnightcodev.wpengine.com/diversity please use following credentials for the prompt: demo /codelab303Rocks!
    If you visit that page, you’ll see the issue happening, as I already mentioned charts are correctly displayed at the first time, but if you reload the page for second or third time the issue will appear, I’m suspecting something is failing in Visualizer when the canvas are already loaded for the first time and they aren’t not initialising again in the next page loading.
    Please let me know if you need more details to dig into it.

    Plugin Support Kush

    (@kushnamdev)

    Hey @alejandromarin,

    Thanks for reaching out!

    I am able to replicate this issue on my instance and I have reported this bug to our developers as well and they are working to fix this issue as soon as possible.

    Thank you for reporting this and being an active community member, have a great day!!

    Thread Starter alejandromarin

    (@alejandromarin)

    @kushnamdev and @luciamarinescu, do you have an estimated time to resolve this issue? It would be useful to have date time to take action from our side regarding graphs.

    Hi @alejandromarin,

    Unfortunately, we can’t provide you an ETA for the fix. We’ll come back with a message once we have an update about this.

    We’re sorry for the inconvenience and thank you for your patience!

    Plugin Support Kush

    (@kushnamdev)

    Hey @alejandromarin,

    This issue has been fixed in the latest update(v3.8.1) of Visualizer. Can you please update the plugin to the latest version and check on your end if the issue still persists?

    Thread Starter alejandromarin

    (@alejandromarin)

    Hey @kushnamdev Thanks for following up this, I confirm after v3.8.1 the issue is not happening again. Best regards.

    Plugin Support Kush

    (@kushnamdev)

    Hey @alejandromarin,

    We are glad to hear this got solved with the latest update of Visualizer, thanks for the confirmation. So, if you don’t have any further questions or issues could you please mark this as resolved?

    Have a great day!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Uncaught Error: Canvas is already in use.’ is closed to new replies.