var ctx = document.getElementById('myChart-12').getContext('2d'); var chart = new Chart(ctx, { type: 'pie', data: { labels: [ 'Румунія', 'Словаччина', 'Російська Федирація', 'Польща', 'Індія', 'Чехія', 'Білорусь', 'Італія', 'Туреччина', 'Німеччина', 'Інші' ], datasets: [{ label: false, backgroundColor: [ '#0d47a1', '#1565c0', '#1976d2', '#1e88e5', '#42a5f5', '#42a5f5', '#90a4ae', '#78909c', '#607d8b', '#546e7a', '#455a64' ], data: [ 13.1, 8.3, 8.0, 7.9, 7.6, 7.3, 6.5, 4.2, 4.0, 4.0, 29.1 ] }] }, 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] + ''; } } }, } });