Skip to content

Commit ed0e12d

Browse files
committed
Add mock with zindex on overlaying axis
1 parent 17ffddb commit ed0e12d

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed
+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"data": [
3+
{
4+
"x": [2, 3, 4, 5],
5+
"y": [4, 3, 9, 5],
6+
"name": "blue",
7+
"type": "scatter",
8+
"marker": {"size": 20},
9+
"line": {"width": 6},
10+
"yaxis": "y",
11+
"zindex": 5
12+
},
13+
{
14+
"x": [2, 3, 4, 5, 6],
15+
"y": [2, 5, 4, 6, 4],
16+
"name": "orange",
17+
"type": "scatter",
18+
"marker": {"size": 20},
19+
"line": {"width": 6},
20+
"yaxis": "y",
21+
"zindex": 1
22+
},
23+
{
24+
"x": [3, 4, 5, 6, 7],
25+
"y": [1, 8, 6, 8, 5],
26+
"name": "green",
27+
"type": "scatter",
28+
"marker": {"size": 20},
29+
"line": {"width": 6},
30+
"yaxis": "y2"
31+
},
32+
33+
{
34+
"x": [2, 3, 4, 5, 6, 7],
35+
"y": [4, 2, 6, 1, 6, 9],
36+
"name": "bar",
37+
"type": "bar",
38+
"yaxis": "y2",
39+
"zindex": 20
40+
}
41+
],
42+
"layout": {
43+
"xaxis": {
44+
"title": {
45+
"text": "zindex stacking"
46+
}
47+
},
48+
"yaxis": {
49+
"side": "right"
50+
},
51+
"y2axis": {
52+
"title":{"text":"y2"}, "overlaying": "y"
53+
}
54+
}
55+
}

0 commit comments

Comments
 (0)