var ctx = document.getElementById('myChart-6').getContext('2d'); var chart = new Chart(ctx, { type: 'pie', data: { labels: [ 'Processing industry', 'Electricity, gas, steam and conditioned air supply', 'Extractive industry and quarry development', 'Water supply, sewage disposal, waste management' ], datasets: [{ label: false, backgroundColor: [ '#0d47a1', '#1976d2', '#1e88e5', '#42a5f5' ], data: [ 56, 32.5, 10.8, 0.7 ] }] }, options: { responsive: true, // legend: { position: 'left', align: 'center' }, tooltips: { mode: 'label', callbacks: { label: function(tooltipItem, data) { var indice = tooltipItem.index; return data.labels[indice] +': '+data.datasets[0].data[indice] + ''; } } }, } });