Skip to content

Commit a33aa46

Browse files
committed
add updatemenu image test
1 parent b47008f commit a33aa46

File tree

2 files changed

+194
-0
lines changed

2 files changed

+194
-0
lines changed

test/image/baselines/updatemenus.png

28.1 KB
Loading

test/image/mocks/updatemenus.json

+194
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,194 @@
1+
{
2+
"data": [
3+
{
4+
"y": [
5+
0.8894873976401985,
6+
0.014899350293371638,
7+
0.6973412552835649,
8+
0.4322110719369108,
9+
0.6435204579331169,
10+
0.7913368293479852,
11+
0.45608188941724737,
12+
0.8773020090286707,
13+
0.7857950507320299,
14+
0.1565801184767599
15+
],
16+
"line": {
17+
"shape": "spline",
18+
"color": "blue"
19+
},
20+
"visible": false,
21+
"name": "Data set 0"
22+
},
23+
{
24+
"y": [
25+
0.9351499287297007,
26+
0.700778614078541,
27+
0.7689119583929467,
28+
0.4902017818752995,
29+
0.47690322880123315,
30+
0.7023096460658049,
31+
0.684735948009966,
32+
0.005709757371773261,
33+
0.2184467476442955,
34+
0.4081284199526569
35+
],
36+
"line": {
37+
"shape": "spline",
38+
"color": "blue"
39+
},
40+
"visible": false,
41+
"name": "Data set 1"
42+
},
43+
{
44+
"y": [
45+
0.3795534309237285,
46+
0.48132628030867997,
47+
0.20021856641930635,
48+
0.5429433932874588,
49+
0.34709608300933814,
50+
0.4388656146011727,
51+
0.8859918512360843,
52+
0.7921704515742529,
53+
0.4487943073874723,
54+
0.1978381397790716
55+
],
56+
"line": {
57+
"shape": "spline",
58+
"color": "blue"
59+
},
60+
"visible": true,
61+
"name": "Data set 2"
62+
},
63+
{
64+
"y": [
65+
0.6485026667443128,
66+
0.150419147834701,
67+
0.9484267018735058,
68+
0.7694920172667608,
69+
0.13303711181474798,
70+
0.8763890868570736,
71+
0.12203888678244112,
72+
0.7980275682208424,
73+
0.14953415395023817,
74+
0.4831367265254263
75+
],
76+
"line": {
77+
"shape": "spline",
78+
"color": "blue"
79+
},
80+
"visible": false,
81+
"name": "Data set 3"
82+
}
83+
],
84+
"layout": {
85+
"updatemenus": [
86+
{
87+
"buttons": [
88+
{
89+
"method": "restyle",
90+
"args": [
91+
"line.color",
92+
"red"
93+
],
94+
"label": "red"
95+
},
96+
{
97+
"method": "restyle",
98+
"args": [
99+
"line.color",
100+
"blue"
101+
],
102+
"label": "blue"
103+
},
104+
{
105+
"method": "restyle",
106+
"args": [
107+
"line.color",
108+
"green"
109+
],
110+
"label": "green"
111+
}
112+
],
113+
"active": 1
114+
},
115+
{
116+
"y": 0.7,
117+
"buttons": [
118+
{
119+
"method": "restyle",
120+
"args": [
121+
"visible",
122+
[
123+
true,
124+
false,
125+
false,
126+
false
127+
]
128+
],
129+
"label": "Data set 0"
130+
},
131+
{
132+
"method": "restyle",
133+
"args": [
134+
"visible",
135+
[
136+
false,
137+
true,
138+
false,
139+
false
140+
]
141+
],
142+
"label": "Data set 1"
143+
},
144+
{
145+
"method": "restyle",
146+
"args": [
147+
"visible",
148+
[
149+
false,
150+
false,
151+
true,
152+
false
153+
]
154+
],
155+
"label": "Data set 2"
156+
},
157+
{
158+
"method": "restyle",
159+
"args": [
160+
"visible",
161+
[
162+
false,
163+
false,
164+
false,
165+
true
166+
]
167+
],
168+
"label": "Data set 3"
169+
}
170+
],
171+
"x": -0.05,
172+
"active": 2
173+
}
174+
],
175+
"xaxis": {
176+
"range": [
177+
-0.5484683986041102,
178+
9.54846839860411
179+
],
180+
"autorange": true
181+
},
182+
"yaxis": {
183+
"type": "linear",
184+
"range": [
185+
0.14689768330153566,
186+
0.9369323077136202
187+
],
188+
"autorange": true
189+
},
190+
"height": 450,
191+
"width": 1100,
192+
"autosize": true
193+
}
194+
}

0 commit comments

Comments
 (0)