Skip to content

Commit 2c3dbb3

Browse files
committed
lint legend_visibility mock
1 parent b6c1906 commit 2c3dbb3

File tree

1 file changed

+76
-21
lines changed

1 file changed

+76
-21
lines changed
Lines changed: 76 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,79 @@
11
{
2-
"data":[
3-
{"name":"bar A","type":"bar","y":["2","3","5","4","1"]},
4-
{"name":"bar B","type":"bar","visible":"legendonly","y":["3","5","7","6","8"]},
5-
{"name":"bar C","type":"bar","y":["2","4","6","3","8"]},
6-
{"name":"line A","yaxis":"y2","y":["2","3","5","4","1"]},
7-
{"name":"line B","yaxis":"y2","visible":"legendonly","y":["3","5","7","6","8"]},
8-
{"name":"line C","yaxis":"y2","y":["2","4","6","3","8"]},
9-
{"name":"box A","type":"box","xaxis":"x2","yaxis":"y3","y":[1,2,3,4,5,6,7,8,9]},
10-
{"name":"box B","type":"box","xaxis":"x2","yaxis":"y3","visible":"legendonly","y":[2,3,3,4,4,4,5,5,6]},
11-
{"name":"box C","type":"box","xaxis":"x2","yaxis":"y3","y":[1,4,6,7,7,8,8,8,9]}
12-
],
13-
"layout": {
14-
"showlegend":true,
15-
"height":400,
16-
"width":600,
17-
"barnorm":"fraction",
18-
"barmode":"stack",
19-
"xaxis":{"domain":[0,0.45]},
20-
"xaxis2":{"anchor":"y3","domain":[0.55,1]},
21-
"yaxis2":{"overlaying":"y","side":"right"},
22-
"yaxis3":{"anchor":"x2"}
2+
"data": [
3+
{
4+
"name": "bar A",
5+
"type": "bar",
6+
"y": ["2", "3", "5", "4", "1"]
7+
},
8+
{
9+
"name": "bar B",
10+
"type": "bar",
11+
"visible": "legendonly",
12+
"y": ["3", "5", "7", "6", "8"]
13+
},
14+
{
15+
"name": "bar C",
16+
"type": "bar",
17+
"y": ["2", "4", "6", "3", "8"]
18+
},
19+
{
20+
"name": "line A",
21+
"yaxis": "y2",
22+
"y": ["2", "3", "5", "4", "1"]
23+
},
24+
{
25+
"name": "line B",
26+
"yaxis": "y2",
27+
"visible": "legendonly",
28+
"y": ["3", "5", "7", "6", "8"]
29+
},
30+
{
31+
"name": "line C",
32+
"yaxis": "y2",
33+
"y": ["2", "4", "6", "3", "8"]
34+
},
35+
{
36+
"name": "box A",
37+
"type": "box",
38+
"xaxis": "x2",
39+
"yaxis": "y3",
40+
"y": [1, 2, 3, 4, 5, 6, 7, 8, 9]
41+
},
42+
{
43+
"name": "box B",
44+
"type": "box",
45+
"xaxis": "x2",
46+
"yaxis": "y3",
47+
"visible": "legendonly",
48+
"y": [2, 3, 3, 4, 4, 4, 5, 5, 6]
49+
},
50+
{
51+
"name": "box C",
52+
"type": "box",
53+
"xaxis": "x2",
54+
"yaxis": "y3",
55+
"y": [1, 4, 6, 7, 7, 8, 8, 8, 9]
2356
}
57+
],
58+
"layout": {
59+
"showlegend": true,
60+
"height": 400,
61+
"width": 600,
62+
"barnorm": "fraction",
63+
"barmode": "stack",
64+
"xaxis": {
65+
"domain": [0, 0.45]
66+
},
67+
"xaxis2": {
68+
"anchor": "y3",
69+
"domain": [0.55, 1]
70+
},
71+
"yaxis2": {
72+
"overlaying": "y",
73+
"side": "right"
74+
},
75+
"yaxis3": {
76+
"anchor": "x2"
77+
}
78+
}
2479
}

0 commit comments

Comments
 (0)