-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix using above/below filling option with discontinuous lines (#10024)
Added a test in the boundary folder
- Loading branch information
1 parent
a5b46a8
commit c527f47
Showing
5 changed files
with
129 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
test/fixtures/plugin.filler/line/boundary/above-below-line-null-start.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"config": { | ||
"type": "line", | ||
"data": { | ||
"labels": ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13"], | ||
"datasets": [{ | ||
"borderColor": "rgb(42, 90, 145)", | ||
"data": [null, 12, 30, 36, 45, 53, 68, 79, null, 95, 18, 18, 180], | ||
"fill": { | ||
"target": "+1", | ||
"above": "rgba(4, 142, 43, 0.5)", | ||
"below": "rgba(241, 49, 34, 0.5)" | ||
} | ||
}, { | ||
"borderColor": "#00ADEE", | ||
"data": [null, 0, 0, 0, 0, 0, 20, 108, null, 72, 72, 72, 72], | ||
"fill": false | ||
}] | ||
}, | ||
"options": { | ||
"responsive": false, | ||
"spanGaps": false, | ||
"scales": { | ||
"x": { | ||
"display": false | ||
}, | ||
"y": { | ||
"display": false | ||
} | ||
}, | ||
"elements": { | ||
"point": { | ||
"radius": 0 | ||
}, | ||
"line": { | ||
"cubicInterpolationMode": "monotone", | ||
"borderColor": "transparent" | ||
} | ||
}, | ||
"plugins": { | ||
"legend": false, | ||
"title": false, | ||
"tooltip": false | ||
} | ||
} | ||
}, | ||
"options": { | ||
"canvas": { | ||
"height": 256, | ||
"width": 512 | ||
} | ||
} | ||
} |
Binary file added
BIN
+17.3 KB
test/fixtures/plugin.filler/line/boundary/above-below-line-null-start.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 53 additions & 0 deletions
53
test/fixtures/plugin.filler/line/boundary/above-below-line-null.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"config": { | ||
"type": "line", | ||
"data": { | ||
"labels": ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13"], | ||
"datasets": [{ | ||
"borderColor": "rgb(42, 90, 145)", | ||
"data": [4, 12, 30, 36, 45, 53, 68, 79, null, 95, 18, null, 18, 180], | ||
"fill": { | ||
"target": "+1", | ||
"above": "rgba(4, 142, 43, 0.5)", | ||
"below": "rgba(241, 49, 34, 0.5)" | ||
} | ||
}, { | ||
"borderColor": "#00ADEE", | ||
"data": [0, 0, 0, 0, 0, 0, 20, 108, null, 72, 72, null, 72, 72], | ||
"fill": false | ||
}] | ||
}, | ||
"options": { | ||
"responsive": false, | ||
"spanGaps": false, | ||
"scales": { | ||
"x": { | ||
"display": false | ||
}, | ||
"y": { | ||
"display": false | ||
} | ||
}, | ||
"elements": { | ||
"point": { | ||
"radius": 0 | ||
}, | ||
"line": { | ||
"cubicInterpolationMode": "monotone", | ||
"borderColor": "transparent" | ||
} | ||
}, | ||
"plugins": { | ||
"legend": false, | ||
"title": false, | ||
"tooltip": false | ||
} | ||
} | ||
}, | ||
"options": { | ||
"canvas": { | ||
"height": 256, | ||
"width": 512 | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.