Skip to content

Commit 1504463

Browse files
committed
combine blank horizontal and vertical bar text mocks in one
1 parent 75a5cb4 commit 1504463

4 files changed

+127
-46
lines changed
16.5 KB
Loading
Binary file not shown.

test/image/mocks/blank-bar-outsidetext.json

+127-13
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,142 @@
22
"data": [
33
{
44
"type": "bar",
5-
"x": [ "textposition:outside" ],
6-
"y": [ 0 ],
7-
"text": [ "Text" ],
8-
"textposition": [ "outside" ]
5+
"x": [
6+
"textposition:outside"
7+
],
8+
"y": [
9+
0
10+
],
11+
"text": [
12+
"Text"
13+
],
14+
"textposition": [
15+
"outside"
16+
],
17+
"xaxis": "x",
18+
"yaxis": "y"
919
},
1020
{
1121
"type": "bar",
12-
"x": [ "textpostion:auto" ],
13-
"y": [ 0 ],
14-
"text": [ "should not see" ],
15-
"textposition": [ "auto" ]
22+
"x": [
23+
"textpostion:auto"
24+
],
25+
"y": [
26+
0
27+
],
28+
"text": [
29+
"should not see"
30+
],
31+
"textposition": [
32+
"auto"
33+
],
34+
"xaxis": "x",
35+
"yaxis": "y"
1636
},
1737
{
1838
"type": "bar",
19-
"x": [ "textpostion:inside" ],
20-
"y": [ 0 ],
21-
"text": [ "should not see" ],
22-
"textposition": [ "inside" ]
39+
"x": [
40+
"textpostion:inside"
41+
],
42+
"y": [
43+
0
44+
],
45+
"text": [
46+
"should not see"
47+
],
48+
"textposition": [
49+
"inside"
50+
],
51+
"xaxis": "x",
52+
"yaxis": "y"
53+
},
54+
{
55+
"type": "bar",
56+
"orientation": "h",
57+
"y": [
58+
"textposition:outside"
59+
],
60+
"x": [
61+
0
62+
],
63+
"text": [
64+
"Text"
65+
],
66+
"textposition": [
67+
"outside"
68+
],
69+
"xaxis": "x2",
70+
"yaxis": "y2"
71+
},
72+
{
73+
"type": "bar",
74+
"orientation": "h",
75+
"y": [
76+
"textpostion:auto"
77+
],
78+
"x": [
79+
0
80+
],
81+
"text": [
82+
"should not see"
83+
],
84+
"textposition": [
85+
"auto"
86+
],
87+
"xaxis": "x2",
88+
"yaxis": "y2"
89+
},
90+
{
91+
"type": "bar",
92+
"orientation": "h",
93+
"y": [
94+
"textpostion:inside"
95+
],
96+
"x": [
97+
0
98+
],
99+
"text": [
100+
"should not see"
101+
],
102+
"textposition": [
103+
"inside"
104+
],
105+
"xaxis": "x2",
106+
"yaxis": "y2"
23107
}
24108
],
25109
"layout": {
26110
"showlegend": false,
27-
"width": 600
111+
"margin": { "l": 150 },
112+
"width": 1200,
113+
"height": 600,
114+
"xaxis": {
115+
"anchor": "x",
116+
"domain": [
117+
0,
118+
0.5
119+
]
120+
},
121+
"yaxis": {
122+
"anchor": "y",
123+
"domain": [
124+
0,
125+
0.5
126+
]
127+
},
128+
"xaxis2": {
129+
"anchor": "x2",
130+
"domain": [
131+
0.5,
132+
0.1
133+
]
134+
},
135+
"yaxis2": {
136+
"anchor": "y2",
137+
"domain": [
138+
0.5,
139+
1
140+
]
141+
}
28142
}
29143
}

test/image/mocks/blank-bar-outsidetext_horizontal.json

-33
This file was deleted.

0 commit comments

Comments
 (0)