Skip to content

Commit 32381d5

Browse files
committed
add image test
1 parent ab00d35 commit 32381d5

File tree

3 files changed

+67
-0
lines changed

3 files changed

+67
-0
lines changed
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"data": [
3+
{
4+
"y": [0, 100],
5+
"yaxis": "y"
6+
},
7+
{
8+
"y": [100, 0],
9+
"yaxis": "y2"
10+
},
11+
{
12+
"x": [0, 100],
13+
"xaxis": "x2",
14+
"yaxis": "y3"
15+
},
16+
{
17+
"x": [100, 0],
18+
"xaxis": "x3",
19+
"yaxis": "y3"
20+
}
21+
],
22+
"layout": {
23+
"width": 300,
24+
"height": 400,
25+
"margin": {
26+
"t": 40,
27+
"b": 40,
28+
"l": 40,
29+
"r": 40
30+
},
31+
"plot_bgcolor": "lightblue",
32+
"showlegend": false,
33+
"yaxis": {
34+
"domain" : [0, 0.45],
35+
"anchor": "x",
36+
"ticklabelposition": "inside",
37+
"side": "left"
38+
},
39+
"yaxis2": {
40+
"overlaying": "y",
41+
"anchor": "x",
42+
"ticklabelposition": "inside",
43+
"side": "right"
44+
},
45+
"yaxis3": {
46+
"anchor": "x3",
47+
"domain" : [0.55, 1],
48+
"range": [-1.1, 2.1]
49+
},
50+
"xaxis": {
51+
"range": [-1.1, 2.1]
52+
},
53+
"xaxis2": {
54+
"overlaying": "x3",
55+
"anchor": "y3",
56+
"ticklabelposition": "inside",
57+
"side": "bottom"
58+
},
59+
"xaxis3": {
60+
"anchor": "y3",
61+
"ticklabelposition": "inside",
62+
"side": "top"
63+
}
64+
}
65+
}

test/jasmine/tests/mock_test.js

+2
Original file line numberDiff line numberDiff line change
@@ -983,6 +983,7 @@ var list = [
983983
'ticklabelposition-c',
984984
'ticklabelposition-d',
985985
'ticklabelposition-overlay',
986+
'ticklabelposition-overlay2',
986987
'tickson_boundaries',
987988
'titles-avoid-labels',
988989
'trace_metatext',
@@ -2082,6 +2083,7 @@ figs['ticklabelposition-b'] = require('@mocks/ticklabelposition-b');
20822083
figs['ticklabelposition-c'] = require('@mocks/ticklabelposition-c');
20832084
figs['ticklabelposition-d'] = require('@mocks/ticklabelposition-d');
20842085
figs['ticklabelposition-overlay'] = require('@mocks/ticklabelposition-overlay');
2086+
figs['ticklabelposition-overlay2'] = require('@mocks/ticklabelposition-overlay2');
20852087
figs['tickson_boundaries'] = require('@mocks/tickson_boundaries');
20862088
// figs['titles-avoid-labels'] = require('@mocks/titles-avoid-labels');
20872089
// figs['trace_metatext'] = require('@mocks/trace_metatext');

0 commit comments

Comments
 (0)