mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-08 05:09:08 +02:00
5a014dc361
Remove the special drawing for an undefined zero grid line since it causes issue when the first tick is not aligned on the scale extremity (ie only linear scales now display a special grid line for the origin). Hide scales in the filler plugin unit test fixtures to avoid future failures due to changes unrelated to the tested features.
53 lines
1.5 KiB
JSON
53 lines
1.5 KiB
JSON
{
|
|
"config": {
|
|
"type": "line",
|
|
"data": {
|
|
"labels": ["0", "1", "2", "3", "4", "5", "6", "7", "8"],
|
|
"datasets": [{
|
|
"backgroundColor": "rgba(0, 0, 192, 0.25)",
|
|
"data": [null, null, 2, 4, 2, 1, -1, 1, 2]
|
|
}, {
|
|
"backgroundColor": "rgba(0, 192, 0, 0.25)",
|
|
"data": [4, 2, null, 3, 2.5, null, -2, 1.5, 3]
|
|
}, {
|
|
"backgroundColor": "rgba(192, 0, 0, 0.25)",
|
|
"data": [3.5, 2, 1, 2.5, -2, 3, -1, null, null]
|
|
}, {
|
|
"backgroundColor": "rgba(128, 0, 128, 0.25)",
|
|
"data": [5, 6, 5, -2, -4, -3, 4, 2, 4.5]
|
|
}]
|
|
},
|
|
"options": {
|
|
"responsive": false,
|
|
"spanGaps": false,
|
|
"legend": false,
|
|
"title": false,
|
|
"scales": {
|
|
"xAxes": [{
|
|
"display": false
|
|
}],
|
|
"yAxes": [{
|
|
"display": false
|
|
}]
|
|
},
|
|
"elements": {
|
|
"point": {
|
|
"radius": 0
|
|
},
|
|
"line": {
|
|
"cubicInterpolationMode": "monotone",
|
|
"borderColor": "transparent",
|
|
"stepped": true,
|
|
"fill": "origin"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"options": {
|
|
"canvas": {
|
|
"height": 256,
|
|
"width": 512
|
|
}
|
|
}
|
|
}
|