-
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.
- whitespace as tabs only to align with project lint standards - replacing 'this' references with a local 'me' variable - removal of label text to avoid cross-platform font issues in image tests - added an image test for default alignment of 'start' for vertical legends (left/right)
- Loading branch information
Dave Kichler
committed
Mar 18, 2019
1 parent
c05a2a6
commit 4081897
Showing
17 changed files
with
165 additions
and
150 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
35 changes: 17 additions & 18 deletions
35
test/fixtures/plugin.legend/legend-doughnut-left-center-mulitiline.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 |
---|---|---|
@@ -1,24 +1,23 @@ | ||
{ | ||
"config": { | ||
"type": "doughnut", | ||
"data": { | ||
"labels": ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16"], | ||
"datasets": [{ | ||
"data": [10, 20, 30, 40, 50, 60, 70, 10, 20, 30, 40, 50, 60, 70, 10, 20, 30] | ||
}] | ||
}, | ||
"options": { | ||
"responsive": false, | ||
"config": { | ||
"type": "doughnut", | ||
"data": { | ||
"labels": ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""], | ||
"datasets": [{ | ||
"data": [10, 20, 30, 40, 50, 60, 70, 10, 20, 30, 40, 50, 60, 70, 10, 20, 30] | ||
}] | ||
}, | ||
"options": { | ||
"legend": { | ||
"position": "left", | ||
"align": "center" | ||
} | ||
} | ||
}, | ||
"options": { | ||
"canvas": { | ||
"height": 256, | ||
"width": 512 | ||
} | ||
} | ||
} | ||
}, | ||
"options": { | ||
"canvas": { | ||
"height": 256, | ||
"width": 512 | ||
} | ||
} | ||
} |
Binary file modified
BIN
-3.62 KB
(90%)
test/fixtures/plugin.legend/legend-doughnut-left-center-mulitiline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 17 additions & 18 deletions
35
test/fixtures/plugin.legend/legend-doughnut-left-center-single.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 |
---|---|---|
@@ -1,24 +1,23 @@ | ||
{ | ||
"config": { | ||
"type": "doughnut", | ||
"data": { | ||
"labels": ["0"], | ||
"datasets": [{ | ||
"data": [10] | ||
}] | ||
}, | ||
"options": { | ||
"responsive": false, | ||
"config": { | ||
"type": "doughnut", | ||
"data": { | ||
"labels": [""], | ||
"datasets": [{ | ||
"data": [10] | ||
}] | ||
}, | ||
"options": { | ||
"legend": { | ||
"position": "left", | ||
"align": "center" | ||
} | ||
} | ||
}, | ||
"options": { | ||
"canvas": { | ||
"height": 256, | ||
"width": 512 | ||
} | ||
} | ||
} | ||
}, | ||
"options": { | ||
"canvas": { | ||
"height": 256, | ||
"width": 512 | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
test/fixtures/plugin.legend/legend-doughnut-left-default-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,22 @@ | ||
{ | ||
"config": { | ||
"type": "doughnut", | ||
"data": { | ||
"labels": ["", "", "", "", "", ""], | ||
"datasets": [{ | ||
"data": [10, 20, 30, 40, 50] | ||
}] | ||
}, | ||
"options": { | ||
"legend": { | ||
"position": "left" | ||
} | ||
} | ||
}, | ||
"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.
35 changes: 17 additions & 18 deletions
35
test/fixtures/plugin.legend/legend-doughnut-left-end-mulitiline.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 |
---|---|---|
@@ -1,24 +1,23 @@ | ||
{ | ||
"config": { | ||
"type": "doughnut", | ||
"data": { | ||
"labels": ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16"], | ||
"datasets": [{ | ||
"data": [10, 20, 30, 40, 50, 60, 70, 10, 20, 30, 40, 50, 60, 70, 10, 20, 30] | ||
}] | ||
}, | ||
"options": { | ||
"responsive": false, | ||
"config": { | ||
"type": "doughnut", | ||
"data": { | ||
"labels": ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""], | ||
"datasets": [{ | ||
"data": [10, 20, 30, 40, 50, 60, 70, 10, 20, 30, 40, 50, 60, 70, 10, 20, 30] | ||
}] | ||
}, | ||
"options": { | ||
"legend": { | ||
"position": "left", | ||
"align": "end" | ||
} | ||
} | ||
}, | ||
"options": { | ||
"canvas": { | ||
"height": 256, | ||
"width": 512 | ||
} | ||
} | ||
} | ||
}, | ||
"options": { | ||
"canvas": { | ||
"height": 256, | ||
"width": 512 | ||
} | ||
} | ||
} |
Binary file modified
BIN
-3.8 KB
(89%)
test/fixtures/plugin.legend/legend-doughnut-left-end-mulitiline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 17 additions & 18 deletions
35
test/fixtures/plugin.legend/legend-doughnut-left-start-mulitiline.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 |
---|---|---|
@@ -1,24 +1,23 @@ | ||
{ | ||
"config": { | ||
"type": "doughnut", | ||
"data": { | ||
"labels": ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16"], | ||
"datasets": [{ | ||
"data": [10, 20, 30, 40, 50, 60, 70, 10, 20, 30, 40, 50, 60, 70, 10, 20, 30] | ||
}] | ||
}, | ||
"options": { | ||
"responsive": false, | ||
"config": { | ||
"type": "doughnut", | ||
"data": { | ||
"labels": ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""], | ||
"datasets": [{ | ||
"data": [10, 20, 30, 40, 50, 60, 70, 10, 20, 30, 40, 50, 60, 70, 10, 20, 30] | ||
}] | ||
}, | ||
"options": { | ||
"legend": { | ||
"position": "left", | ||
"align": "start" | ||
} | ||
} | ||
}, | ||
"options": { | ||
"canvas": { | ||
"height": 256, | ||
"width": 512 | ||
} | ||
} | ||
} | ||
}, | ||
"options": { | ||
"canvas": { | ||
"height": 256, | ||
"width": 512 | ||
} | ||
} | ||
} |
Binary file modified
BIN
-3.75 KB
(90%)
test/fixtures/plugin.legend/legend-doughnut-left-start-mulitiline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 17 additions & 18 deletions
35
test/fixtures/plugin.legend/legend-doughnut-top-center-mulitiline.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 |
---|---|---|
@@ -1,24 +1,23 @@ | ||
{ | ||
"config": { | ||
"type": "doughnut", | ||
"data": { | ||
"labels": ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16"], | ||
"datasets": [{ | ||
"data": [10, 20, 30, 40, 50, 60, 70, 10, 20, 30, 40, 50, 60, 70, 10, 20, 30] | ||
}] | ||
}, | ||
"options": { | ||
"responsive": false, | ||
"config": { | ||
"type": "doughnut", | ||
"data": { | ||
"labels": ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""], | ||
"datasets": [{ | ||
"data": [10, 20, 30, 40, 50, 60, 70, 10, 20, 30, 40, 50, 60, 70, 10, 20, 30, 20, 10] | ||
}] | ||
}, | ||
"options": { | ||
"legend": { | ||
"position": "top", | ||
"align": "center" | ||
} | ||
} | ||
}, | ||
"options": { | ||
"canvas": { | ||
"height": 256, | ||
"width": 512 | ||
} | ||
} | ||
} | ||
}, | ||
"options": { | ||
"canvas": { | ||
"height": 256, | ||
"width": 512 | ||
} | ||
} | ||
} |
Binary file modified
BIN
-3.11 KB
(89%)
test/fixtures/plugin.legend/legend-doughnut-top-center-mulitiline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 17 additions & 18 deletions
35
test/fixtures/plugin.legend/legend-doughnut-top-center-single.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 |
---|---|---|
@@ -1,24 +1,23 @@ | ||
{ | ||
"config": { | ||
"type": "doughnut", | ||
"data": { | ||
"labels": ["0"], | ||
"datasets": [{ | ||
"data": [10] | ||
}] | ||
}, | ||
"options": { | ||
"responsive": false, | ||
"config": { | ||
"type": "doughnut", | ||
"data": { | ||
"labels": [""], | ||
"datasets": [{ | ||
"data": [10] | ||
}] | ||
}, | ||
"options": { | ||
"legend": { | ||
"position": "top", | ||
"align": "center" | ||
} | ||
} | ||
}, | ||
"options": { | ||
"canvas": { | ||
"height": 256, | ||
"width": 512 | ||
} | ||
} | ||
} | ||
}, | ||
"options": { | ||
"canvas": { | ||
"height": 256, | ||
"width": 512 | ||
} | ||
} | ||
} |
35 changes: 17 additions & 18 deletions
35
test/fixtures/plugin.legend/legend-doughnut-top-end-mulitiline.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 |
---|---|---|
@@ -1,24 +1,23 @@ | ||
{ | ||
"config": { | ||
"type": "doughnut", | ||
"data": { | ||
"labels": ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16"], | ||
"datasets": [{ | ||
"data": [10, 20, 30, 40, 50, 60, 70, 10, 20, 30, 40, 50, 60, 70, 10, 20, 30] | ||
}] | ||
}, | ||
"options": { | ||
"responsive": false, | ||
"config": { | ||
"type": "doughnut", | ||
"data": { | ||
"labels": ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""], | ||
"datasets": [{ | ||
"data": [10, 20, 30, 40, 50, 60, 70, 10, 20, 30, 40, 50, 60, 70, 10] | ||
}] | ||
}, | ||
"options": { | ||
"legend": { | ||
"position": "top", | ||
"align": "end" | ||
} | ||
} | ||
}, | ||
"options": { | ||
"canvas": { | ||
"height": 256, | ||
"width": 512 | ||
} | ||
} | ||
} | ||
}, | ||
"options": { | ||
"canvas": { | ||
"height": 256, | ||
"width": 512 | ||
} | ||
} | ||
} |
Binary file modified
BIN
-3.32 KB
(89%)
test/fixtures/plugin.legend/legend-doughnut-top-end-mulitiline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 17 additions & 18 deletions
35
test/fixtures/plugin.legend/legend-doughnut-top-start-mulitiline.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 |
---|---|---|
@@ -1,24 +1,23 @@ | ||
{ | ||
"config": { | ||
"type": "doughnut", | ||
"data": { | ||
"labels": ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16"], | ||
"datasets": [{ | ||
"data": [10, 20, 30, 40, 50, 60, 70, 10, 20, 30, 40, 50, 60, 70, 10, 20, 30] | ||
}] | ||
}, | ||
"options": { | ||
"responsive": false, | ||
"config": { | ||
"type": "doughnut", | ||
"data": { | ||
"labels": ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""], | ||
"datasets": [{ | ||
"data": [10, 20, 30, 40, 50, 60, 70, 10, 20, 30, 40, 50, 60, 70, 10] | ||
}] | ||
}, | ||
"options": { | ||
"legend": { | ||
"position": "top", | ||
"align": "start" | ||
} | ||
} | ||
}, | ||
"options": { | ||
"canvas": { | ||
"height": 256, | ||
"width": 512 | ||
} | ||
} | ||
} | ||
}, | ||
"options": { | ||
"canvas": { | ||
"height": 256, | ||
"width": 512 | ||
} | ||
} | ||
} |
Binary file modified
BIN
-3.27 KB
(89%)
test/fixtures/plugin.legend/legend-doughnut-top-start-mulitiline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.