Chart.js/test/fixtures/controller.doughnut/doughnut-full-to-semi.js
Jukka Kurkela 0dc733a96c
Configure all datasets before updating any (#9872)
* Update misleading sample comment

* Configure all datasets before updating any
2021-11-18 00:09:25 +02:00

34 lines
662 B
JavaScript

module.exports = {
description: 'https://github.com/chartjs/Chart.js/issues/9832',
config: {
type: 'doughnut',
data: {
datasets: [{
label: 'Set 1',
data: [50, 50, 25],
backgroundColor: ['#BF616A', '#D08770', '#EBCB8B'],
borderWidth: 0
},
{
label: 'Se1 2',
data: [50, 50, 25],
backgroundColor: ['#BF616A', '#D08770', '#EBCB8B'],
borderWidth: 0
}]
},
options: {
rotation: -90
}
},
options: {
canvas: {
width: 512,
height: 512
},
run(chart) {
chart.options.circumference = 180;
chart.update();
}
}
};