 = document.getElementById(elementId);
    if (element) {
        element.style.display = 'none';
        const container = element.parentElement;
        const errorDiv = document.createElement('div');
        errorDiv.className = 'rc-text-center rc-text-secondary rc-py-8';
        errorDiv.innerHTML = `
            <i class="bi bi-exclamation-triangle rc-text-4xl rc-mb-4"></i>
            <p>Unable to load ${chartName}</p>
            <small>Please refresh the page or contact support</small>
        `;
  