Skip to content

Commit b05f8fb

Browse files
committed
test a few more things in tickson_boundaries mock
1 parent 09ac230 commit b05f8fb

File tree

2 files changed

+40
-2
lines changed

2 files changed

+40
-2
lines changed
10.4 KB
Loading

test/image/mocks/tickson_boundaries.json

+40-2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"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"],
1616
"y": [0.6, 0.7, 0.3, 0.6, 0, 0.5, 0.7, 0.9, 0.5, 0.8, 0.7, 0.2]
1717
},
18+
1819
{
1920
"type": "bar",
2021
"x": [1, 2, 1],
@@ -38,12 +39,31 @@
3839
"orientation": "h",
3940
"xaxis": "x2",
4041
"yaxis": "y2"
42+
},
43+
44+
{
45+
"type": "bar",
46+
"name": "with dtick !== 1",
47+
"x": ["a", "b", "c", "d", "e", "f", "g", "h"],
48+
"y": [1, 2, 1, 2, 1, 3, 4, 1],
49+
"xaxis": "x3",
50+
"yaxis": "y3"
51+
},
52+
53+
{
54+
"mode": "markers",
55+
"marker": {"symbol": "square"},
56+
"name": "with overlapping tick labels",
57+
"x": ["A very long title", "short", "Another very long title"],
58+
"y": [1, 4, 2],
59+
"xaxis": "x4",
60+
"yaxis": "y4"
4161
}
4262
],
4363
"layout": {
4464
"boxmode": "group",
4565
"grid": {
46-
"rows": 2,
66+
"rows": 4,
4767
"columns": 1,
4868
"pattern": "independent",
4969
"ygap": 0.2
@@ -60,7 +80,25 @@
6080
"gridcolor": "white",
6181
"gridwidth": 4
6282
},
83+
"xaxis3": {
84+
"ticks": "inside",
85+
"tickson": "boundaries",
86+
"gridcolor": "white",
87+
"gridwidth": 4,
88+
"dtick": 2
89+
},
90+
"xaxis4": {
91+
"domain": [0.22, 0.78],
92+
"ticks": "outside",
93+
"ticklen": 20,
94+
"tickson": "boundaries",
95+
"gridcolor": "white",
96+
"gridwidth": 4
97+
},
6398
"plot_bgcolor": "lightgrey",
64-
"showlegend": false
99+
"showlegend": false,
100+
"width": 500,
101+
"height": 800,
102+
"margin": {"b": 140}
65103
}
66104
}

0 commit comments

Comments
 (0)