mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-07 12:49:07 +02:00
44 lines
1.1 KiB
JSON
44 lines
1.1 KiB
JSON
|
{
|
||
|
"config": {
|
||
|
"type": "bar",
|
||
|
"data": {
|
||
|
"labels": ["2016", "2018", "2020", "2024", "2030"],
|
||
|
"datasets": [{
|
||
|
"backgroundColor": "#FF6384",
|
||
|
"data": [1]
|
||
|
}]
|
||
|
},
|
||
|
"options": {
|
||
|
"responsive": false,
|
||
|
"legend": false,
|
||
|
"title": false,
|
||
|
"scales": {
|
||
|
"xAxes": [{
|
||
|
"type": "time",
|
||
|
"display": false,
|
||
|
"barPercentage": 1,
|
||
|
"categoryPercentage": 1,
|
||
|
"ticks": {
|
||
|
"source": "labels"
|
||
|
},
|
||
|
"time": {
|
||
|
"min": "2013"
|
||
|
}
|
||
|
}],
|
||
|
"yAxes": [{
|
||
|
"display": false,
|
||
|
"ticks": {
|
||
|
"beginAtZero": true
|
||
|
}
|
||
|
}]
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"options": {
|
||
|
"canvas": {
|
||
|
"height": 256,
|
||
|
"width": 512
|
||
|
}
|
||
|
}
|
||
|
}
|