up missing js

This commit is contained in:
Tykayn 2025-06-23 00:47:49 +02:00 committed by tykayn
parent f785e67f49
commit 31bbf6fc36

View file

@ -170,6 +170,8 @@ document.addEventListener('DOMContentLoaded', function() {
// Initial draw // Initial draw
console.log('[bubble chart] Initialisation avec taille proportionnelle ?', toggle.checked); console.log('[bubble chart] Initialisation avec taille proportionnelle ?', toggle.checked);
if(drawBubbleChart){
drawBubbleChart(toggle && toggle.checked); drawBubbleChart(toggle && toggle.checked);
// Listener // Listener
toggle.addEventListener('change', function() { toggle.addEventListener('change', function() {
@ -177,5 +179,6 @@ document.addEventListener('DOMContentLoaded', function() {
drawBubbleChart(toggle.checked); drawBubbleChart(toggle.checked);
}); });
} }
}
waitForChartAndDrawBubble(); waitForChartAndDrawBubble();
}); });