const ctx = document.getElementById('myChart').getContext('2d');
const myChart = new Chart(ctx, {
type: 'bar',
data: {
labels: ['Dosen A', 'Dosen B', 'Dosen C'],
datasets: [{
label: 'Rata-rata Skor',
data: [4.5, 4.2, 4.7],
backgroundColor: 'rgba(54, 162, 235, 0.6)'
}]
},
options: {
scales: {
y: {
beginAtZero: true,
max: 5
}
}
}
});