new Chart(document.getElementById('PieChart'), { type: 'pie', data: { labels: ['1', '2', '3'], datasets: [ { label: 'Dataset 1', data: [50, 15, 35], backgroundColor: ['#64bbf3', '#ee6c71', '#fecc4e'], }, ], }, options: { responsive: true, plugins: { legend: { position: 'top', labels: { boxWidth: 15, padding: 15, }, }, title: { display: true, text: 'Chart.js Pie Chart', }, }, }, })