         
                charts.contributorsChart.data = {
                    labels: contributors.map(c => c.login),
                    datasets: [{
                        label: 'Contributions',
                        data: contributors.map(c => c.contributions),
                        backgroundColor: '#3b82f6'
                    }]
                };
                charts.contributorsChart.update();

            } catch (error) {
                showError(`Error analyzing repository: ${error.mes