Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7f85775

Browse filesBrowse files
committed
Images: Add mock
1 parent c2636ba commit 7f85775
Copy full SHA for 7f85775

File tree

Expand file treeCollapse file tree

1 file changed

+60
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+60
-0
lines changed

‎test/image/mocks/layout_image.json

Copy file name to clipboard
+60Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"data": [
3+
{
4+
"x": [1,2,3],
5+
"y": [1,2,3]
6+
}
7+
],
8+
"layout": {
9+
"images": [
10+
{
11+
"source": "http://www.placekitten.com/100",
12+
"xref": "paper",
13+
"yref": "paper",
14+
"x": 0,
15+
"y": 0,
16+
"width": 0.2,
17+
"height": 0.2,
18+
"xanchor": "right",
19+
"yanchor": "bottom"
20+
},
21+
{
22+
"source": "http://www.placekitten.com/300",
23+
"xref": "x",
24+
"yref": "y",
25+
"x": 2.5,
26+
"y": 2,
27+
"width": 1,
28+
"height": 1,
29+
"xanchor": "center",
30+
"yanchor": "middle",
31+
"layer": "below"
32+
},
33+
{
34+
"source": "http://www.placekitten.com/400",
35+
"xref": "x",
36+
"yref": "y",
37+
"x": 1,
38+
"y": 3,
39+
"width": 2,
40+
"height": 2,
41+
"sizing": "stretch",
42+
"opacity": 0.4
43+
},
44+
{
45+
"source": "http://www.placekitten.com/300",
46+
"xref": "x",
47+
"yref": "paper",
48+
"x": 2.75,
49+
"y": 0,
50+
"width": 0.5,
51+
"height": 1,
52+
"opacity": 1,
53+
"xanchor": "left",
54+
"yanchor": "top"
55+
}
56+
],
57+
"width": 800,
58+
"height": 500
59+
}
60+
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.