                            }
                            }
                        }
                    });
                }
            }
        });

        // Handle month content containers separately
        const monthContainers = document.querySelectorAll('.month-content:not([data-charts-initialized])');

        monthContainers.forEach(container => {
            container.setAttribute('data-charts-initialized', 'true');

            const year = container.getAttribute('data-year');
            c