mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 12:19:08 +02:00
34 lines
662 B
JavaScript
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();
|
||
|
}
|
||
|
}
|
||
|
};
|