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

Skip to content

Commit 6729286

Browse files
committed
split gl2d and gl3d in separate mocks
1 parent 05f4722 commit 6729286

File tree

5 files changed

+68
-193
lines changed

5 files changed

+68
-193
lines changed
25.5 KB
Loading
Loading
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"data": [{
3+
"type": "scattergl",
4+
"mode": "markers+text",
5+
"x": [0, 1, 2, 3],
6+
"y": [0, 1, 4, 9],
7+
8+
"text": ["a", "b", "c", "d"],
9+
"texttemplate": "%{text}: (%{x}, %{y})",
10+
"textposition": "top center",
11+
"xaxis": "x2",
12+
"yaxis": "y2"
13+
}, {
14+
"type": "scatterpolargl",
15+
"mode": "markers+text",
16+
"text": ["A", "B", "C", "D"],
17+
"texttemplate": "%{text}: (%{r:0.2f},%{theta:0.2f})",
18+
"textposition": "top center",
19+
"r": [1, 0.5, 1, 1.5],
20+
"theta": [0, 90, 180, 270],
21+
"showgrid": false,
22+
"subplot": "polar"
23+
}
24+
],
25+
"layout": {
26+
"showlegend": false,
27+
"width": 600,
28+
"height": 300,
29+
"margin": {
30+
"t": 50,
31+
"b": 50,
32+
"l": 50,
33+
"r": 50
34+
},
35+
"polar": {
36+
"radialaxis": {
37+
"showline": false,
38+
"linewidth": 0,
39+
"tickwidth": 2,
40+
"gridcolor": "white",
41+
"gridwidth": 0
42+
}
43+
},
44+
"grid": {
45+
"rows": 1,
46+
"columns": 2,
47+
"pattern": "independent",
48+
"xgap": 5,
49+
"ygap": 5
50+
}
51+
}
52+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"data": [{
3+
"type": "scatter3d",
4+
"x": [0, 1, 2],
5+
"y": [0, 2, 1],
6+
"z": [-5, -2, 4],
7+
"text": ["A", "B", "C"],
8+
"texttemplate": "%{text}: (%{x}, %{y}, %{z})",
9+
"mode": "markers+text"
10+
}],
11+
"layout": {
12+
"width": 400,
13+
"height": 400,
14+
"margin": {"t": 20, "l": 0, "r": 0, "b": 0}
15+
}
16+
}

test/image/mocks/texttemplate_2.json

Lines changed: 0 additions & 193 deletions
This file was deleted.

0 commit comments

Comments
 (0)