mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 12:19:08 +02:00
ed68557a99
* start to make object notation usable for polarArea * enable object notation also for radar chart, test default key
28 lines
507 B
JSON
28 lines
507 B
JSON
{
|
|
"config": {
|
|
"type": "polarArea",
|
|
"data": {
|
|
"datasets": [
|
|
{
|
|
"data": [{"id": "Sales", "nested": {"value": 10}}, {"id": "Purchases", "nested": {"value": 20}}],
|
|
"backgroundColor": ["red", "blue"]
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"responsive": false,
|
|
"plugins": {
|
|
"legend": false
|
|
},
|
|
"parsing": {
|
|
"key": "nested.value"
|
|
},
|
|
"scales": {
|
|
"r": {
|
|
"display": false
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|