Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding legend alignment image tests for bottom and right positioned l…
…egends
- Loading branch information
Dave Kichler
committed
Mar 20, 2019
1 parent
01f2876
commit b750f79
Showing
18 changed files
with
224 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
test/fixtures/plugin.legend/legend-doughnut-bottom-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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"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], | ||
"backgroundColor": "#00ff00", | ||
"borderWidth": 0 | ||
}] | ||
}, | ||
"options": { | ||
"legend": { | ||
"position": "bottom", | ||
"align": "center" | ||
} | ||
} | ||
}, | ||
"options": { | ||
"canvas": { | ||
"height": 256, | ||
"width": 512 | ||
} | ||
} | ||
} |
Binary file added
BIN
+12.3 KB
test/fixtures/plugin.legend/legend-doughnut-bottom-center-mulitiline.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions
25
test/fixtures/plugin.legend/legend-doughnut-bottom-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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"config": { | ||
"type": "doughnut", | ||
"data": { | ||
"labels": [""], | ||
"datasets": [{ | ||
"data": [10], | ||
"backgroundColor": "#00ff00", | ||
"borderWidth": 0 | ||
}] | ||
}, | ||
"options": { | ||
"legend": { | ||
"position": "bottom", | ||
"align": "center" | ||
} | ||
} | ||
}, | ||
"options": { | ||
"canvas": { | ||
"height": 256, | ||
"width": 512 | ||
} | ||
} | ||
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions
25
test/fixtures/plugin.legend/legend-doughnut-bottom-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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"config": { | ||
"type": "doughnut", | ||
"data": { | ||
"labels": ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""], | ||
"datasets": [{ | ||
"data": [10, 20, 30, 40, 50, 60, 70, 10, 20, 30, 40, 50, 60, 70, 10], | ||
"backgroundColor": "#00ff00", | ||
"borderWidth": 0 | ||
}] | ||
}, | ||
"options": { | ||
"legend": { | ||
"position": "bottom", | ||
"align": "end" | ||
} | ||
} | ||
}, | ||
"options": { | ||
"canvas": { | ||
"height": 256, | ||
"width": 512 | ||
} | ||
} | ||
} |
Binary file added
BIN
+11.4 KB
test/fixtures/plugin.legend/legend-doughnut-bottom-end-mulitiline.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions
25
test/fixtures/plugin.legend/legend-doughnut-bottom-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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"config": { | ||
"type": "doughnut", | ||
"data": { | ||
"labels": ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""], | ||
"datasets": [{ | ||
"data": [10, 20, 30, 40, 50, 60, 70, 10, 20, 30, 40, 50, 60, 70, 10], | ||
"backgroundColor": "#00ff00", | ||
"borderWidth": 0 | ||
}] | ||
}, | ||
"options": { | ||
"legend": { | ||
"position": "bottom", | ||
"align": "start" | ||
} | ||
} | ||
}, | ||
"options": { | ||
"canvas": { | ||
"height": 256, | ||
"width": 512 | ||
} | ||
} | ||
} |
Binary file added
BIN
+11.3 KB
test/fixtures/plugin.legend/legend-doughnut-bottom-start-mulitiline.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions
25
test/fixtures/plugin.legend/legend-doughnut-right-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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"config": { | ||
"type": "doughnut", | ||
"data": { | ||
"labels": ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""], | ||
"datasets": [{ | ||
"data": [10, 20, 30, 40, 50, 60, 70, 10, 20, 30, 40, 50, 60, 70, 10, 20, 30], | ||
"backgroundColor": "#00ff00", | ||
"borderWidth": 0 | ||
}] | ||
}, | ||
"options": { | ||
"legend": { | ||
"position": "right", | ||
"align": "center" | ||
} | ||
} | ||
}, | ||
"options": { | ||
"canvas": { | ||
"height": 256, | ||
"width": 512 | ||
} | ||
} | ||
} |
Binary file added
BIN
+14.7 KB
test/fixtures/plugin.legend/legend-doughnut-right-center-mulitiline.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions
25
test/fixtures/plugin.legend/legend-doughnut-right-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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"config": { | ||
"type": "doughnut", | ||
"data": { | ||
"labels": [""], | ||
"datasets": [{ | ||
"data": [10], | ||
"backgroundColor": "#00ff00", | ||
"borderWidth": 0 | ||
}] | ||
}, | ||
"options": { | ||
"legend": { | ||
"position": "right", | ||
"align": "center" | ||
} | ||
} | ||
}, | ||
"options": { | ||
"canvas": { | ||
"height": 256, | ||
"width": 512 | ||
} | ||
} | ||
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions
24
test/fixtures/plugin.legend/legend-doughnut-right-default-center.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,24 @@ | ||
{ | ||
"config": { | ||
"type": "doughnut", | ||
"data": { | ||
"labels": ["", "", "", "", "", ""], | ||
"datasets": [{ | ||
"data": [10, 20, 30, 40, 50], | ||
"backgroundColor": "#00ff00", | ||
"borderWidth": 0 | ||
}] | ||
}, | ||
"options": { | ||
"legend": { | ||
"position": "right" | ||
} | ||
} | ||
}, | ||
"options": { | ||
"canvas": { | ||
"height": 256, | ||
"width": 512 | ||
} | ||
} | ||
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions
25
test/fixtures/plugin.legend/legend-doughnut-right-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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"config": { | ||
"type": "doughnut", | ||
"data": { | ||
"labels": ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""], | ||
"datasets": [{ | ||
"data": [10, 20, 30, 40, 50, 60, 70, 10, 20, 30, 40, 50, 60, 70, 10, 20, 30], | ||
"backgroundColor": "#00ff00", | ||
"borderWidth": 0 | ||
}] | ||
}, | ||
"options": { | ||
"legend": { | ||
"position": "right", | ||
"align": "end" | ||
} | ||
} | ||
}, | ||
"options": { | ||
"canvas": { | ||
"height": 256, | ||
"width": 512 | ||
} | ||
} | ||
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions
25
test/fixtures/plugin.legend/legend-doughnut-right-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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"config": { | ||
"type": "doughnut", | ||
"data": { | ||
"labels": ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""], | ||
"datasets": [{ | ||
"data": [10, 20, 30, 40, 50, 60, 70, 10, 20, 30, 40, 50, 60, 70, 10, 20, 30], | ||
"backgroundColor": "#00ff00", | ||
"borderWidth": 0 | ||
}] | ||
}, | ||
"options": { | ||
"legend": { | ||
"position": "right", | ||
"align": "start" | ||
} | ||
} | ||
}, | ||
"options": { | ||
"canvas": { | ||
"height": 256, | ||
"width": 512 | ||
} | ||
} | ||
} |
Binary file added
BIN
+14.6 KB
test/fixtures/plugin.legend/legend-doughnut-right-start-mulitiline.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.