Skip to content

Commit

Permalink
add mocks showing #4132 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
etpinard committed Aug 30, 2019
1 parent 1f00a40 commit 2b2bd9b
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 0 deletions.
Binary file added test/image/baselines/legend_horizontal_bg_fit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions test/image/mocks/legend_horizontal_bg_fit.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"data": [
{ "y": [ 1 ], "name": "AAAAAAAAAAAAaaaaaaa" },
{ "y": [ 2 ], "name": "BB" },
{ "y": [ 3 ], "name": "C" },
{ "y": [ 4 ], "name": "D" },
{ "y": [ 5 ], "name": "E" },
{ "y": [ 6 ], "name": "F" },
{ "y": [ 7 ], "name": "G" }
],
"layout": {
"legend": {
"bgcolor": "red",
"orientation": "h"
},
"width": 600
}
}
26 changes: 26 additions & 0 deletions test/image/mocks/legendgroup_horizontal_bg_fit.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"data": [
{
"y": [ 1, 2, 1 ],
"name": "country=Canada",
"legendgroup": "country=Canada"
},
{
"y": [ 2, 1, 2 ],
"name": "country=Mexico",
"legendgroup": "country=Mexico"
},
{
"y": [ 3, 0, 4 ],
"name": "country=United States",
"legendgroup": "country=United States"
}
],
"layout": {
"legend": {
"bgcolor": "red",
"orientation": "h"
},
"width": 700
}
}

0 comments on commit 2b2bd9b

Please sign in to comment.