         }
        }
    });
    
    // GitHub API Usage History Chart
    const githubApiChartElement = document.getElementById('githubApiChart');
    if (githubApiChartElement) {
        let githubApiHistory = [];
        try {
            githubApiHistory = JSON.parse('{{ status.github_api_history|escapejs|default:"[]" }}');
        } catch (e) {
            console.error('Error parsing GitHub API history:', e);
        }
        
        if (githubApiHistory && githubApiHistory.length > 0) {
          