Skip to content

Commit 5ca8b36

Browse files
committed
improve point-selection mock
1 parent eeaca74 commit 5ca8b36

File tree

2 files changed

+20
-11
lines changed

2 files changed

+20
-11
lines changed
27.2 KB
Loading

test/image/mocks/point-selection.json

+20-11
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
{
22
"data": [{
3+
"mode": "lines+markers+text",
34
"x": [1, 2, 3, 4, 5, 6],
45
"y": [1, 3, 2, 4, 5, 7],
56
"ids": ["a", "b", "c", "d", "e", "f"],
7+
"text": ["a", "b", "c", "d", "e", "f"],
68
"marker": {
7-
"color": "red",
9+
"color": "#67353E",
810
"size": 12
911
},
12+
"textposition": "top left",
1013
"selectedpoints": [1, 2, 3],
1114
"selected": {
1215
"marker": {
13-
"color": "blue",
14-
"size": 24
16+
"color": "blue"
1517
}
1618
},
1719
"unselected": {
1820
"marker": {
1921
"color": "green",
20-
"size": 6,
2122
"opacity": 0.5
2223
}
2324
},
@@ -28,23 +29,25 @@
2829
"value": [3.5, 4.5]
2930
}]
3031
}, {
32+
"mode": "lines+markers+text",
3133
"x": [1, 2, 3, 4, 5, 6],
3234
"y": [6, 5, 6, 5, 4, 3],
3335
"ids": ["a", "b", "c", "d", "e", "f"],
36+
"text": ["a", "b", "c", "d", "e", "f"],
3437
"marker": {
35-
"color": "blue",
38+
"color": "#34ABA2",
3639
"size": 12
3740
},
41+
"textposition": "top left",
42+
"selectedpoints": [],
3843
"selected": {
3944
"marker": {
40-
"color": "blue",
41-
"size": 24
45+
"color": "green"
4246
}
4347
},
4448
"unselected": {
4549
"marker": {
46-
"color": "green",
47-
"size": 6,
50+
"color": "blue",
4851
"opacity": 0.5
4952
}
5053
},
@@ -56,7 +59,13 @@
5659
}]
5760
}],
5861
"layout": {
59-
"dragmode": "lasso"
62+
"dragmode": "lasso",
63+
"legend": {
64+
"x": 0,
65+
"y": 1,
66+
"xanchor": "left",
67+
"yanchor": "bottom"
68+
},
69+
"width": 600
6070
}
6171
}
62-

0 commit comments

Comments
 (0)