mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-09 05:39:06 +02:00
9b204eb278
* Enable per-dataset circumference and rotation for pie/doughnut charts * Convert `circumference` and `rotation` options to degrees
25 lines
569 B
JSON
25 lines
569 B
JSON
{
|
|
"config": {
|
|
"type": "doughnut",
|
|
"data": {
|
|
"labels": ["A"],
|
|
"datasets": [{
|
|
"data": [100],
|
|
"backgroundColor": [
|
|
"rgba(153, 102, 255, 0.8)"
|
|
],
|
|
"borderWidth": 20,
|
|
"borderColor": [
|
|
"rgb(153, 102, 255)"
|
|
]
|
|
}]
|
|
},
|
|
"options": {
|
|
"circumference": 400,
|
|
"responsive": false,
|
|
"legend": false,
|
|
"title": false
|
|
}
|
|
}
|
|
}
|