Chartjs-Moving HTML with jQuery makes chart.js charts dissapear, no errors, unknown reason How can I redraw it?

0👍

As there is no complete source you provided. The problem I understood is with the page load. You are executing some JavaScript functions before all related things loaded.

You should try jquery document ready function

// A $( document ).ready() block.
$( document ).ready(function() {
    console.log( "ready!" );
});

Put your call inside the ready function.

A page can’t be manipulated safely until the document is “ready.”
jQuery detects this state of readiness for you. Code included inside
$( document ).ready() will only run once the page Document Object
Model (DOM) is ready for JavaScript code to execute. Code included
inside $( window ).on( “load”, function() { … }) will run once the
entire page (images or iframes), not just the DOM, is ready.

So your code will be something

// A $( document ).ready() block.
$( document ).ready(function() {
   organizeChartsInTabs();
});

Leave a comment