// Our labels along the x-axis var labels = ["Pengaduan Dalam Proses", "Pengaduan Selesai", "Pengaduan Ditolak"]; var data = { labels: labels, datasets: [{ data: [90, 180, 23], backgroundColor: [ '#3528e0bd', '#90ee90b3', '#e7183182' ], borderColor: [ '#000000', '#000000', '#000000' ] }] }; // For drawing the lines var ctx = document.getElementById("myChart"); var myChart = new Chart(ctx, { type: 'bar', data: data, barThickness:5, options: { indexAxis: 'y', elements: { bar: { borderWidth: 2, } }, responsive: true, plugins: { legend: { display: false, position: 'bottom', }, title: { display: false, } } }, });