var ctx = document.getElementById("sold_articles_cake"); var sold_articles_cake = new Chart(ctx, { type: 'pie', data: { datasets: [{ data: [ 2055, 816, 953, ], backgroundColor: [ 'rgba(237, 125, 49, 0.9)', 'rgba(255, 192, 0, 0.9)', 'rgba(112, 173, 71, 0.9)', ], label: 'Dataset 1' }], labels: [ 'Gruppe 1', 'Gruppe 2', 'Gruppe 3', ] }, options: { responsive: true, title: { display: false, text: 'Verkaufte Artikel', }, tooltips: { mode: 'index', intersect: false, }, hover: { mode: 'nearest', intersect: true }, legend: { position: 'bottom' } } });