You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a responsive chart is removed from the DOM without calling destroy() on it first, and then the window is resized, Chart.js will start throwing errors. Maybe this isn't important because the library is being misused by not calling destroy() like a good citizen, but it would be easy to fix.
getMaximumWidth = helpers.getMaximumWidth = function(domNode){
var container = domNode.parentNode;
// TODO = check cross browser stuff with this.
if(!container) return 0; //ADD THIS LINE
return container.clientWidth;
},
getMaximumHeight = helpers.getMaximumHeight = function(domNode){
var container = domNode.parentNode;
// TODO = check cross browser stuff with this.
if(!container) return 0; //ADD THIS LINE
return container.clientHeight;
},
The text was updated successfully, but these errors were encountered:
If a responsive chart is removed from the DOM without calling destroy() on it first, and then the window is resized, Chart.js will start throwing errors. Maybe this isn't important because the library is being misused by not calling destroy() like a good citizen, but it would be easy to fix.
The text was updated successfully, but these errors were encountered: