mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-09 05:39:06 +02:00
ce74eb76a1
* Convert axis options from arrays to objects * Updated all chart type defaults * Throw errors when axis type or position are not specified * Avoid raising unnecessary errors when merging options into the default configs * Fix additional tests * Ensure scale defaults are set if type is not explicitly defined * Another step * Include `scale` as `firstIDs.r` * update docs * Update for buildOrUpdateScales * Update migration guide * Add test back
42 lines
1.2 KiB
JSON
42 lines
1.2 KiB
JSON
{
|
|
"config": {
|
|
"type": "radar",
|
|
"data": {
|
|
"labels": ["A", "B", "C", "D", "E"]
|
|
},
|
|
"options": {
|
|
"responsive": false,
|
|
"legend": false,
|
|
"title": false,
|
|
"scale": {
|
|
"gridLines": {
|
|
"display": true,
|
|
"color": [
|
|
"rgba(0, 0, 0, 0.5)",
|
|
"rgba(255, 255, 255, 0.5)",
|
|
false,
|
|
"",
|
|
"rgba(255, 0, 0, 0.5)",
|
|
"rgba(0, 255, 0, 0.5)",
|
|
"rgba(0, 0, 255, 0.5)",
|
|
"rgba(255, 255, 0, 0.5)",
|
|
"rgba(255, 0, 255, 0.5)",
|
|
"rgba(0, 255, 255, 0.5)"
|
|
],
|
|
"lineWidth": [false, 0, 1, 2, 1, 2, 1, 2, 1, 2]
|
|
},
|
|
"angleLines": {
|
|
"color": "rgba(255, 255, 255, 0.5)",
|
|
"lineWidth": 2
|
|
},
|
|
"pointLabels": {
|
|
"display": false
|
|
},
|
|
"ticks": {
|
|
"display": false
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|