mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-09 05:39:06 +02:00
07fae6159e
New `options.legend.align`config option for controlling alignment of legend blocks in horizontal/vertical legends.
26 lines
459 B
JSON
26 lines
459 B
JSON
{
|
|
"config": {
|
|
"type": "doughnut",
|
|
"data": {
|
|
"labels": ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""],
|
|
"datasets": [{
|
|
"data": [10, 20, 30, 40, 50, 60, 70, 10, 20, 30, 40, 50, 60, 70, 10, 20, 30],
|
|
"backgroundColor": "#00ff00",
|
|
"borderWidth": 0
|
|
}]
|
|
},
|
|
"options": {
|
|
"legend": {
|
|
"position": "right",
|
|
"align": "center"
|
|
}
|
|
}
|
|
},
|
|
"options": {
|
|
"canvas": {
|
|
"height": 256,
|
|
"width": 512
|
|
}
|
|
}
|
|
}
|