Skip to content

Commit f180f4c

Browse files
committed
added mock and revised gl-scatter3d
1 parent 8c10f4e commit f180f4c

File tree

4 files changed

+66
-6
lines changed

4 files changed

+66
-6
lines changed

package-lock.json

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"d3-force": "^1.0.6",
6969
"delaunay-triangulate": "^1.1.6",
7070
"es6-promise": "^3.0.2",
71-
"fast-isnumeric": "git://github.com/plotly/fast-isnumeric.git#d4163ac7bd980b5d29a260380f128bf5c39ce899",
71+
"fast-isnumeric": "^1.1.2",
7272
"font-atlas-sdf": "^1.3.3",
7373
"gl-cone3d": "^1.1.0",
7474
"gl-contour2d": "^1.1.4",
@@ -80,7 +80,7 @@
8080
"gl-plot2d": "^1.3.1",
8181
"gl-plot3d": "^1.5.7",
8282
"gl-pointcloud2d": "^1.0.1",
83-
"gl-scatter3d": "git://github.com/gl-vis/gl-scatter3d.git#1303e5cdba604471bf9bc8233ce924779f799e2a",
83+
"gl-scatter3d": "git://github.com/gl-vis/gl-scatter3d.git#8915d2ec6a89b7dc76e216487e82143dbc165c6f",
8484
"gl-select-box": "^1.0.2",
8585
"gl-spikes2d": "^1.0.1",
8686
"gl-streamtube3d": "^1.0.0",
203 KB
Loading
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"data": [
3+
{
4+
"x": [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],
5+
"y": [0,0,0,0,0,0,0,0,0,0,0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
6+
"z": [0,1,0,2,0,3,0,4,0,5,0, 6, 0, 7, 0, 8, 0, 9, 0, 10],
7+
8+
"type": "scatter3d",
9+
"mode":"lines+text",
10+
"line":{ "width": 5 }
11+
},
12+
{
13+
"x": [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],
14+
"y": [1,1,1,1,1,1,1,1,1,1,1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
15+
"z": [0,1,0,2,0,3,0,4,0,5,0, 6, 0, 7, 0, 8, 0, 9, 0, 10],
16+
17+
"text": [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],
18+
19+
"type": "scatter3d",
20+
"mode":"lines+text",
21+
"line":{ "width": 5 }
22+
},
23+
{
24+
"x": [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],
25+
"y": [2,2,2,2,2,2,2,2,2,2,2, 2, 2, 2, 2, 2, 2, 2, 2, 2],
26+
"z": [0,1,0,2,0,3,0,4,0,5,0, 6, 0, 7, 0, 8, 0, 9, 0, 10],
27+
28+
"text": [0,1e-3,0.1,"A","B","C","D","E","F","G",null,"I",,"K","L","M","N",{text:"X", "value":10.01},"Y","Zzz"],
29+
30+
"type": "scatter3d",
31+
"mode":"lines+text",
32+
"line":{ width: 5 }
33+
},
34+
{
35+
"x": [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],
36+
"y": [3,3,3,3,3,3,3,3,3,3,3, 3, 3, 3, 3, 3, 3, 3, 3, 3],
37+
"z": [0,1,0,2,0,3,0,4,0,5,0, 6, 0, 7, 0, 8, 0, 9, 0, 10],
38+
39+
"text": [0,0.0,-0,-0.0,"","0"," ","E","\n","G",null,"I",,"K",,,,"X"],
40+
41+
"type": "scatter3d",
42+
"mode":"lines+text",
43+
"line":{ "width": 5 }
44+
}
45+
46+
],
47+
"layout": {
48+
"title":"scatter3d lines with good/bad/no input texts (including undefined, null & blank variations) should be displayed well on WEBGL",
49+
"width": 1200,
50+
"height": 900,
51+
"scene":{
52+
"camera":{
53+
"eye":{x:-1.25,y:1.25,z:1.25},
54+
"center":{x:0,y:0,z:0},
55+
"up":{x:0,y:0,z:1}
56+
}
57+
}
58+
}
59+
}

0 commit comments

Comments
 (0)