Chart.js/test/fixtures/controller.doughnut/doughnut-NaN.js
Jukka Kurkela f1810586f7
Pie: Fix last slice animation and NaN handling (#8760)
* Pie: Fix last slice animation and NaN handling

* Add tests

* Fix polarArea
2021-03-31 15:25:25 -04:00

26 lines
595 B
JavaScript

module.exports = {
config: {
type: 'doughnut',
data: {
labels: ['A', 'B', 'C', 'D', 'E'],
datasets: [{
data: [1, 5, NaN, 50, 100],
backgroundColor: [
'rgba(255, 99, 132, 0.8)',
'rgba(54, 162, 235, 0.8)',
'rgba(255, 206, 86, 0.8)',
'rgba(75, 192, 192, 0.8)',
'rgba(153, 102, 255, 0.8)'
],
borderColor: [
'rgb(255, 99, 132)',
'rgb(54, 162, 235)',
'rgb(255, 206, 86)',
'rgb(75, 192, 192)',
'rgb(153, 102, 255)'
]
}]
},
}
};