Skip to content

Commit 668f338

Browse files
committed
add tickson boundaries mock
1 parent 90c653b commit 668f338

File tree

2 files changed

+66
-0
lines changed

2 files changed

+66
-0
lines changed
20.6 KB
Loading
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"data": [
3+
{
4+
"type": "box",
5+
"x": ["day 1", "day 1", "day 1", "day 1", "day 1", "day 1", "day 2", "day 2", "day 2", "day 2", "day 2", "day 2"],
6+
"y": [0.2, 0.2, 0.6, 1, 0.5, 0.4, 0.2, 0.7, 0.9, 0.1, 0.5, 0.3]
7+
},
8+
{
9+
"type": "box",
10+
"x": ["day 1", "day 1", "day 1", "day 1", "day 1", "day 1", "day 2", "day 2", "day 2", "day 2", "day 2", "day 2"],
11+
"y": [0.1, 0.3, 0.1, 0.9, 0.6, 0.6, 0.9, 1, 0.3, 0.6, 0.8, 0.5]
12+
},
13+
{
14+
"type": "box",
15+
"x": ["day 1", "day 1", "day 1", "day 1", "day 1", "day 1", "day 2", "day 2", "day 2", "day 2", "day 2", "day 2"],
16+
"y": [0.6, 0.7, 0.3, 0.6, 0, 0.5, 0.7, 0.9, 0.5, 0.8, 0.7, 0.2]
17+
},
18+
{
19+
"type": "bar",
20+
"x": [1, 2, 1],
21+
"y": ["apples", "bananas", "clementines"],
22+
"orientation": "h",
23+
"xaxis": "x2",
24+
"yaxis": "y2"
25+
},
26+
{
27+
"type": "bar",
28+
"x": [1.3, 2.2, 0.8],
29+
"y": ["apples", "bananas", "clementines"],
30+
"orientation": "h",
31+
"xaxis": "x2",
32+
"yaxis": "y2"
33+
},
34+
{
35+
"type": "bar",
36+
"x": [3, 3.2, 1.8],
37+
"y": ["apples", "bananas", "clementines"],
38+
"orientation": "h",
39+
"xaxis": "x2",
40+
"yaxis": "y2"
41+
}
42+
],
43+
"layout": {
44+
"boxmode": "group",
45+
"grid": {
46+
"rows": 2,
47+
"columns": 1,
48+
"pattern": "independent",
49+
"ygap": 0.2
50+
},
51+
"xaxis": {
52+
"ticks": "outside",
53+
"tickson": "boundaries",
54+
"gridcolor": "white",
55+
"gridwidth": 4
56+
},
57+
"yaxis2": {
58+
"ticks": "inside",
59+
"tickson": "boundaries",
60+
"gridcolor": "white",
61+
"gridwidth": 4
62+
},
63+
"plot_bgcolor": "lightgrey",
64+
"showlegend": false
65+
}
66+
}

0 commit comments

Comments
 (0)