Skip to content

Commit 7228d5d

Browse files
committed
add cliponaxis false mock
1 parent d46cae7 commit 7228d5d

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed
36.4 KB
Loading
+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"data": [
3+
{
4+
"x": [1, 2, 3, 4],
5+
"y": [0, 2, 3, 5],
6+
"fill": "tozeroy",
7+
"cliponaxis": false
8+
},
9+
{
10+
"x": [1, 2, 3, 4 ],
11+
"y": [3, 5, 1, 7],
12+
"fill": "tonexty",
13+
"cliponaxis": false
14+
},
15+
{
16+
"mode": "markers+text",
17+
"x": [1, 1, 2, 3, 3, 2],
18+
"y": [2, 1, 1, 1, 2, 2],
19+
"marker": {
20+
"size": [50, 20, 40, 25, 15, 40],
21+
"opacity": 1
22+
},
23+
"text": "not<br>clipped",
24+
"textposition": ["left", "left", "bottom", "right", "right", "top"],
25+
"error_y": {
26+
"array": [0.1, 0.2, 0.3, 0.1, 0.3, 0.2],
27+
"arrayminus": [0.1, 0.2, 0.1, 0.1, 0.1, 0.2]
28+
},
29+
"error_x": {
30+
"array": [0.1, 0.2, 0.3, 0.1, 0.1, 0.2],
31+
"arrayminus": [0.1, 0.2, 0.1, 0.1, 0.1, 0.2]
32+
},
33+
"cliponaxis": false
34+
35+
}
36+
],
37+
"layout": {
38+
"xaxis": {
39+
"range": [1, 3],
40+
"showline": true,
41+
"linewidth": 2,
42+
"mirror": "all"
43+
},
44+
"yaxis": {
45+
"range": [1, 2],
46+
"showline": true,
47+
"linewidth": 2,
48+
"mirror": "all"
49+
},
50+
"showlegend": false,
51+
"dragmode": "pan",
52+
"hovermode": "closest"
53+
}
54+
}

0 commit comments

Comments
 (0)