Skip to content

Commit f628b36

Browse files
committed
Update indentation mock json and ensure it's created last.
1 parent 3a6fc9c commit f628b36

File tree

1 file changed

+30
-14
lines changed

1 file changed

+30
-14
lines changed

test/image/mocks/legend_indentation.json renamed to test/image/mocks/zz-legend_indentation.json

Lines changed: 30 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,36 +6,43 @@
66
"showlegend": true
77
},
88
{
9-
"y": [3, 2, 5, 1, 5],
10-
"name": "Scatter2",
11-
"type": "scatter",
9+
"y": [1, 2, 2, 4, 3],
10+
"name": "Bar",
11+
"type": "bar",
1212
"showlegend": true
1313
},
14-
{
15-
"type": "pie",
16-
"labels": ["a", "b", "c", "d"],
17-
"values": [10, 15, 13, 17],
18-
"domain": {"x": [0.5, 1]}
19-
},
2014
{
2115
"y": [1, 3, 2, 5, 5],
22-
"name": "Scatter 3",
16+
"name": "Scatter 2",
2317
"type": "scatter",
2418
"showlegend": true,
2519
"legend": "legend2"
2620
},
2721
{
2822
"y": [1, 2, 3, 4, 5],
29-
"name": "Bar",
23+
"name": "Bar 2",
3024
"type": "bar",
3125
"showlegend": true,
3226
"legend": "legend2"
27+
},
28+
{
29+
"y": [5, 2, 3, 1, 4],
30+
"name": "Bar 3",
31+
"type": "bar",
32+
"showlegend": true,
33+
"legend": "legend3"
34+
},
35+
{
36+
"y": [2, 1, 3, 4, 4],
37+
"name": "Scatter 3",
38+
"type": "scatter",
39+
"showlegend": true,
40+
"legend": "legend3"
3341
}
3442
],
3543
"layout": {
3644
"title": { "text": "Legend Indentation" },
37-
"width": 800,
38-
"xaxis": {"domain": [0, 0.5]},
45+
"width": 400,
3946
"legend": {
4047
"bgcolor": "lightblue",
4148
"y": 1,
@@ -47,12 +54,21 @@
4754
},
4855
"legend2": {
4956
"bgcolor": "lightgreen",
50-
"y": 0,
57+
"y": 0.5,
5158
"indentation": 30,
5259
"title": { "text": "indent 30" },
5360
"font": {
5461
"size": 10
5562
}
63+
},
64+
"legend3": {
65+
"bgcolor": "pink",
66+
"y": 0,
67+
"indentation": -15,
68+
"title": { "text": "indent -15" },
69+
"font": {
70+
"size": 10
71+
}
5672
}
5773
}
5874
}

0 commit comments

Comments
 (0)