Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 197db01

Browse files
committed
add scattermapbox bubble image test case
1 parent b30b8fb commit 197db01

File tree

2 files changed

+85
-0
lines changed

2 files changed

+85
-0
lines changed
58 KB
Loading

test/image/mocks/mapbox_arrayok.json

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
{
2+
"data": [
3+
{
4+
"type": "scattermapbox",
5+
"lon": [
6+
10,
7+
20,
8+
30
9+
],
10+
"lat": [
11+
10,
12+
20,
13+
30
14+
],
15+
"marker": {
16+
"size": [
17+
20,
18+
10,
19+
40
20+
],
21+
"color": [
22+
"red",
23+
"blue",
24+
"orange"
25+
]
26+
}
27+
},
28+
{
29+
"type": "scattermapbox",
30+
"lon": [
31+
-75,
32+
-120,
33+
100
34+
],
35+
"lat": [
36+
45,
37+
20,
38+
-40
39+
],
40+
"marker": {
41+
"size": [
42+
60,
43+
20,
44+
40
45+
],
46+
"color": [
47+
0,
48+
20,
49+
30
50+
],
51+
"colorbar": {},
52+
"cmin": 0,
53+
"cmax": 30,
54+
"colorscale": [
55+
[
56+
0,
57+
"rgb(220,220,220)"
58+
],
59+
[
60+
0.2,
61+
"rgb(245,195,157)"
62+
],
63+
[
64+
0.4,
65+
"rgb(245,160,105)"
66+
],
67+
[
68+
1,
69+
"rgb(178,10,28)"
70+
]
71+
]
72+
}
73+
}
74+
],
75+
"layout": {
76+
"mapbox": {
77+
"style": "light",
78+
"zoom": 0.5
79+
},
80+
"showlegend": false,
81+
"height": 450,
82+
"width": 1100,
83+
"autosize": true
84+
}
85+
}

0 commit comments

Comments
 (0)