Skip to content

Commit 918068d

Browse files
committed
add mock using alignmentgroup and offsetgroup
1 parent cc99d18 commit 918068d

File tree

2 files changed

+99
-0
lines changed

2 files changed

+99
-0
lines changed
Loading
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
{
2+
"data": [
3+
{
4+
"type": "bar",
5+
"y": [ 1, 2, 1 ],
6+
"yaxis": "y2"
7+
},
8+
{
9+
"type": "bar",
10+
"y": [ 2, 1, 2 ]
11+
},
12+
{
13+
"type": "bar",
14+
"y": [ 1, 3, 0 ]
15+
},
16+
{
17+
"type": "bar",
18+
"y": [ 1, 2, 1 ],
19+
"alignmentgroup": "top",
20+
"hovertext": "alignmentgroup: top",
21+
"xaxis": "x2",
22+
"yaxis": "y2"
23+
},
24+
{
25+
"type": "bar",
26+
"y": [ 2, 1, 2 ],
27+
"hovertext": "alignmentgroup: top<br>offsetgroup: 1",
28+
"alignmentgroup": "bottom",
29+
"offsetgroup": "1",
30+
"xaxis": "x2"
31+
},
32+
{
33+
"type": "bar",
34+
"y": [ 1, 3, 0 ],
35+
"hovertext": "alignmentgroup: top<br>offsetgroup: 2",
36+
"alignmentgroup": "bottom",
37+
"offsetgroup": "2",
38+
"xaxis": "x2"
39+
},
40+
{
41+
"type": "scatter",
42+
"y": [ 1, 2, 1 ],
43+
"yaxis": "y2"
44+
},
45+
{
46+
"type": "scatter",
47+
"y": [ 2, 1, 2 ]
48+
},
49+
{
50+
"type": "scatter",
51+
"y": [ 1, 3, 0 ]
52+
},
53+
{
54+
"type": "scatter",
55+
"y": [ 1, 2, 1 ],
56+
"alignmentgroup": "top",
57+
"hovertext": "alignmentgroup: top",
58+
"xaxis": "x2",
59+
"yaxis": "y2"
60+
},
61+
{
62+
"type": "scatter",
63+
"y": [ 2, 1, 2 ],
64+
"hovertext": "alignmentgroup: top<br>offsetgroup: 1",
65+
"alignmentgroup": "bottom",
66+
"offsetgroup": "1",
67+
"xaxis": "x2"
68+
},
69+
{
70+
"type": "scatter",
71+
"y": [ 1, 3, 0 ],
72+
"hovertext": "alignmentgroup: top<br>offsetgroup: 2",
73+
"alignmentgroup": "bottom",
74+
"offsetgroup": "2",
75+
"xaxis": "x2"
76+
}
77+
],
78+
"layout": {
79+
"scattermode": "group",
80+
"showlegend": false,
81+
"grid": {
82+
"rows": 2,
83+
"columns": 2,
84+
"roworder": "bottom to top"
85+
},
86+
"colorway": [ "blue", "orange", "green" ],
87+
"margin": { "t": 20 },
88+
"xaxis": {
89+
"title": {
90+
"text": "no alignmentgroup<br>no offsetgroup"
91+
}
92+
},
93+
"xaxis2": {
94+
"title": {
95+
"text": "with alignmentgroup<br>with offsetgroup"
96+
}
97+
}
98+
}
99+
}

0 commit comments

Comments
 (0)