Skip to content

Commit 5cfc474

Browse files
committed
Image mocks for selectdirection
1 parent 9595cbe commit 5cfc474

File tree

4 files changed

+60
-0
lines changed

4 files changed

+60
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"data": [
3+
{ "x": [1,1,1,1,1,2,2,2,3,3], "type": "histogram" },
4+
{ "x": [1,2,3], "y":[-1,-2,-3], "type": "bar" },
5+
{ "x": [1,2,3], "y":[-1,-2,-3], "type": "bar", "yaxis":"y2" },
6+
{ "x": [1,1,1,1,1,2,2,2,3,3], "type": "histogram", "yaxis":"y2" }
7+
],
8+
"layout": {
9+
"yaxis": { "domain": [0,0.49] },
10+
"yaxis2": { "domain": [0.51, 1] },
11+
"showlegend": false,
12+
"dragmode": "select",
13+
"selectdirection": "any"
14+
}
15+
}

test/image/mocks/limit_select_d.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"data": [
3+
{ "x": [1,1,1,1,1,2,2,2,3,3], "type": "histogram" },
4+
{ "x": [1,2,3], "y":[-1,-2,-3], "type": "bar" },
5+
{ "x": [1,2,3], "y":[-1,-2,-3], "type": "bar", "yaxis":"y2" },
6+
{ "x": [1,1,1,1,1,2,2,2,3,3], "type": "histogram", "yaxis":"y2" }
7+
],
8+
"layout": {
9+
"yaxis": { "domain": [0,0.49] },
10+
"yaxis2": { "domain": [0.51, 1] },
11+
"showlegend": false,
12+
"dragmode": "select",
13+
"selectdirection": "d"
14+
}
15+
}

test/image/mocks/limit_select_h.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"data": [
3+
{ "x": [1,1,1,1,1,2,2,2,3,3], "type": "histogram" },
4+
{ "x": [1,2,3], "y":[-1,-2,-3], "type": "bar" },
5+
{ "x": [1,2,3], "y":[-1,-2,-3], "type": "bar", "yaxis":"y2" },
6+
{ "x": [1,1,1,1,1,2,2,2,3,3], "type": "histogram", "yaxis":"y2" }
7+
],
8+
"layout": {
9+
"yaxis": { "domain": [0,0.49] },
10+
"yaxis2": { "domain": [0.51, 1] },
11+
"showlegend": false,
12+
"dragmode": "select",
13+
"selectdirection": "h"
14+
}
15+
}

test/image/mocks/limit_select_v.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"data": [
3+
{ "x": [1,1,1,1,1,2,2,2,3,3], "type": "histogram" },
4+
{ "x": [1,2,3], "y":[-1,-2,-3], "type": "bar" },
5+
{ "x": [1,2,3], "y":[-1,-2,-3], "type": "bar", "yaxis":"y2" },
6+
{ "x": [1,1,1,1,1,2,2,2,3,3], "type": "histogram", "yaxis":"y2" }
7+
],
8+
"layout": {
9+
"yaxis": { "domain": [0,0.49] },
10+
"yaxis2": { "domain": [0.51, 1] },
11+
"showlegend": false,
12+
"dragmode": "select",
13+
"selectdirection": "v"
14+
}
15+
}

0 commit comments

Comments
 (0)