Как регулировать отступы между секциями диаграммы doughnut в Chart.js
const ctx = document.getElementById('myChart');
new Chart(ctx, {
type: 'doughnut',
data: {
labels: ['Red', 'Blue', 'Yellow', 'Green', 'Purple', 'Orange'],
datasets: [{
label: '# of Votes',
data: [12, 50, 3, 5, 50, 3],
borderWidth: 0,
backgroundColor: ['red', 'blue', 'yellow','green', 'purple', 'orange'],
borderColor: ['aqua'],
}]
},
options: {
maintainAspectRatio: true,
borderJoinStyle: 'miter',
//spacing: 20,
rotation: 0,
borderAlign: 'inner',
borderRadius: 0,
circumference: 360
}
});
Мне нужно сделать отступы между секциями диаграммы и чтобы отступы были одинаковыми, я делал отступы с помощью spacing , но тогда отступы получаются не равными, как это можно сделать?
