Chart.js/test/fixtures/controller.doughnut/single-slice-offset.js
Richard Gibson 89487501b6
fix: Always draw full arcs and borders for doughnut slices (#10806)
* test: Add a failing test for single-slice doughnut with offset

* fix: Always draw full arcs and borders for doughnut slices

Fixes #10801

* test: Update existing image
2022-11-12 21:47:08 +02:00

17 lines
271 B
JavaScript

module.exports = {
config: {
type: 'doughnut',
data: {
labels: ['A'],
datasets: [{
data: [385],
backgroundColor: 'rgba(0,0,0,0.3)',
borderColor: 'rgba(0,0,0,0.5)',
}]
},
options: {
offset: 20
}
}
};