var ctx = document.getElementById('myChart-13').getContext('2d'); var chart = new Chart(ctx, { type: 'pie', data: { labels: [ 'Plastics, polymeric materials', 'Organic chemical compounds', 'Timber and timber products', 'Electrical machines', 'Milk and dairy products, poultry eggs; honey', 'Mineral fuels; oil and refining products', 'Boilers, machinery', 'Inorganic chemical products', 'Salt, sulfur, ground and stones', 'Seeds and fruits of oil plants' ], datasets: [{ label: false, backgroundColor: [ '#0d47a1', '#1565c0', '#1976d2', '#1e88e5', '#2196f3', '#42a5f5', '#90a4ae', '#78909c', '#607d8b', '#546e7a' ], data: [ 23.0, 14.0, 11.9, 11.8, 8.4, 4.8, 4.0, 3.7, 2.8, 2.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] + ''; } } }, } });