-
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.
Support spanGaps in radar charts (#6289)
* Support spanGaps in radar charts * Minor fixes based on feedback
- Loading branch information
Showing
29 changed files
with
307 additions
and
48 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
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
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
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
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
Binary file modified
BIN
-1.06 KB
(94%)
test/fixtures/plugin.filler/fill-radar-boundary-end-circular.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 45 additions & 0 deletions
45
test/fixtures/plugin.filler/fill-radar-boundary-end-span.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,45 @@ | ||
{ | ||
"config": { | ||
"type": "radar", | ||
"data": { | ||
"labels": ["0", "1", "2", "3", "4", "5", "6", "7", "8"], | ||
"datasets": [{ | ||
"backgroundColor": "rgba(0, 0, 192, 0.25)", | ||
"data": [null, null, 2, 3, 4, -4, -2, 1, 0] | ||
}, { | ||
"backgroundColor": "rgba(0, 192, 0, 0.25)", | ||
"data": [5.5, 2, null, 4, 5, null, null, 2, 1] | ||
}, { | ||
"backgroundColor": "rgba(192, 0, 0, 0.25)", | ||
"data": [7, 3, 4, 5, 6, 1, 4, null, null] | ||
}, { | ||
"backgroundColor": "rgba(0, 0, 192, 0.25)", | ||
"data": [8, 7, 6.5, -6, -4, -6, 4, 5, 8] | ||
}] | ||
}, | ||
"options": { | ||
"responsive": false, | ||
"spanGaps": true, | ||
"legend": false, | ||
"title": false, | ||
"scale": { | ||
"display": false | ||
}, | ||
"elements": { | ||
"point": { | ||
"radius": 0 | ||
}, | ||
"line": { | ||
"borderColor": "transparent", | ||
"fill": "end" | ||
} | ||
} | ||
} | ||
}, | ||
"options": { | ||
"canvas": { | ||
"height": 256, | ||
"width": 256 | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
|
@@ -19,6 +19,7 @@ | |
}, | ||
"options": { | ||
"responsive": false, | ||
"spanGaps": false, | ||
"legend": false, | ||
"title": false, | ||
"scale": { | ||
|
45 changes: 45 additions & 0 deletions
45
test/fixtures/plugin.filler/fill-radar-boundary-origin-span.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,45 @@ | ||
{ | ||
"config": { | ||
"type": "radar", | ||
"data": { | ||
"labels": ["0", "1", "2", "3", "4", "5", "6", "7", "8"], | ||
"datasets": [{ | ||
"backgroundColor": "rgba(0, 0, 192, 0.25)", | ||
"data": [null, null, 2, 3, 4, -4, -2, 1, 0] | ||
}, { | ||
"backgroundColor": "rgba(0, 192, 0, 0.25)", | ||
"data": [6, 2, null, 4, 5, null, null, 2, 1] | ||
}, { | ||
"backgroundColor": "rgba(192, 0, 0, 0.25)", | ||
"data": [7, 3, 4, 5, 6, 1, 4, null, null] | ||
}, { | ||
"backgroundColor": "rgba(0, 64, 192, 0.25)", | ||
"data": [8, 7, 6, -6, -4, -6, 4, 5, 8] | ||
}] | ||
}, | ||
"options": { | ||
"responsive": false, | ||
"spanGaps": true, | ||
"legend": false, | ||
"title": false, | ||
"scale": { | ||
"display": false | ||
}, | ||
"elements": { | ||
"point": { | ||
"radius": 0 | ||
}, | ||
"line": { | ||
"borderColor": "transparent", | ||
"fill": "origin" | ||
} | ||
} | ||
} | ||
}, | ||
"options": { | ||
"canvas": { | ||
"height": 256, | ||
"width": 256 | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
46 changes: 46 additions & 0 deletions
46
test/fixtures/plugin.filler/fill-radar-boundary-origin-spline-span.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,46 @@ | ||
{ | ||
"config": { | ||
"type": "radar", | ||
"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": true, | ||
"legend": false, | ||
"title": false, | ||
"scale": { | ||
"display": false | ||
}, | ||
"elements": { | ||
"point": { | ||
"radius": 0 | ||
}, | ||
"line": { | ||
"borderColor": "transparent", | ||
"tension": 0.5, | ||
"fill": "origin" | ||
} | ||
} | ||
} | ||
}, | ||
"options": { | ||
"canvas": { | ||
"height": 256, | ||
"width": 256 | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
|
@@ -19,6 +19,7 @@ | |
}, | ||
"options": { | ||
"responsive": false, | ||
"spanGaps": false, | ||
"legend": false, | ||
"title": false, | ||
"scale": { | ||
|
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
Binary file modified
BIN
+166 Bytes
(100%)
test/fixtures/plugin.filler/fill-radar-boundary-origin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Binary file modified
BIN
-549 Bytes
(96%)
test/fixtures/plugin.filler/fill-radar-boundary-start-circular.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.