Skip to content

Commit 0124828

Browse files
authored
Merge pull request #3180 from plotly/issue-2871
Fixed issue #2871 - Improved text alignments in scatter3d namely right, top and bottom adjustments
2 parents cde1f10 + 1a3bd83 commit 0124828

7 files changed

+60
-25
lines changed

package-lock.json

+10-24
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
"gl-plot2d": "^1.3.1",
8181
"gl-plot3d": "^1.5.10",
8282
"gl-pointcloud2d": "^1.0.1",
83-
"gl-scatter3d": "^1.0.13",
83+
"gl-scatter3d": "^1.0.14",
8484
"gl-select-box": "^1.0.2",
8585
"gl-spikes2d": "^1.0.1",
8686
"gl-streamtube3d": "^1.1.0",
Loading
Loading
Loading
9 Bytes
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"data": [
3+
{
4+
"x": [3],
5+
"y": [0],
6+
"z": [2],
7+
"text": ["top"],
8+
"type": "scatter3d",
9+
"mode":"markers+text",
10+
"textposition": "top center"
11+
}, {
12+
"x": [0],
13+
"y": [0],
14+
"z": [0],
15+
"text": ["left"],
16+
"type": "scatter3d",
17+
"mode":"markers+text",
18+
"textposition": "center left"
19+
}, {
20+
"x": [1],
21+
"y": [0],
22+
"z": [1],
23+
"text": ["right"],
24+
"type": "scatter3d",
25+
"mode":"markers+text",
26+
"textposition": "center right"
27+
}, {
28+
"x": [2],
29+
"y": [0],
30+
"z": [0],
31+
"text": ["bottom"],
32+
"type": "scatter3d",
33+
"mode":"markers+text",
34+
"textposition": "bottom center"
35+
}
36+
],
37+
"layout": {
38+
"title":"Texts in scatter3d should be aligned to left, right, top or bottom & displayed well on WEBGL",
39+
"width": 800,
40+
"height": 600,
41+
"scene":{
42+
"camera":{
43+
"eye":{"x":-1.25,"y":1.25,"z":1.25},
44+
"center":{"x":0,"y":0,"z":0},
45+
"up":{"x":0,"y":0,"z":1}
46+
}
47+
}
48+
}
49+
}

0 commit comments

Comments
 (0)