Chart.js/test/fixtures/plugin.filler/line/stack.json
2021-04-03 08:13:00 -04:00

68 lines
1.9 KiB
JSON

{
"config": {
"type": "line",
"data": {
"labels": ["0", "1", "2", "3", "4", "5", "6", "7", "8"],
"datasets": [{
"backgroundColor": "rgba(255, 0, 0, 0.25)",
"data": [null, null, 0, 1, 0, 1, null, 0, 1],
"fill": "stack"
}, {
"backgroundColor": "rgba(0, 255, 0, 0.25)",
"data": [1, 1, null, 1, 0, null, 1, 1, 0],
"fill": "stack"
}, {
"backgroundColor": "rgba(0, 0, 255, 0.25)",
"data": [0, 2, null, 2, 0, 2, 0],
"fill": "stack"
}, {
"backgroundColor": "rgba(255, 0, 255, 0.25)",
"data": [2, 0, null, 0, 2, 0, 2, 0, 2],
"fill": "stack"
}, {
"backgroundColor": "rgba(0, 0, 0, 0.25)",
"data": [null, null, null, 2, null, 2, 2],
"fill": "stack"
}, {
"backgroundColor": "rgba(255, 255, 0, 0.25)",
"data": [3, 1, 1, 3, 1, 1, 3, 1, 1],
"fill": "stack"
}]
},
"options": {
"responsive": false,
"spanGaps": false,
"scales": {
"x": {
"display": false
},
"y": {
"display": false,
"stacked": true,
"min": 0
}
},
"elements": {
"point": {
"radius": 0
},
"line": {
"borderColor": "transparent",
"tension": 0
}
},
"plugins": {
"legend": false,
"title": false,
"tooltip": false
}
}
},
"options": {
"canvas": {
"height": 256,
"width": 512
}
}
}