Skip to content

Commit 03cb7c3

Browse files
committed
move _indicatorLayer in fullLayout._toppaper
1 parent 95de457 commit 03cb7c3

File tree

3 files changed

+53
-1
lines changed

3 files changed

+53
-1
lines changed

Diff for: src/plot_api/plot_api.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3780,7 +3780,7 @@ function makePlotFramework(gd) {
37803780
fullLayout._sunburstlayer = fullLayout._paper.append('g').classed('sunburstlayer', true);
37813781

37823782
// single indicator layer for the whole plot
3783-
fullLayout._indicatorlayer = fullLayout._paper.append('g').classed('indicatorlayer', true);
3783+
fullLayout._indicatorlayer = fullLayout._toppaper.append('g').classed('indicatorlayer', true);
37843784

37853785
// fill in image server scrape-svg
37863786
fullLayout._glimages = fullLayout._paper.append('g').classed('glimages', true);

Diff for: test/image/baselines/indicator_scatter3d.png

35.3 KB
Loading

Diff for: test/image/mocks/indicator_scatter3d.json

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"data": [{
3+
"domain": {
4+
"y": [0, 1],
5+
"x": [0.25, 0.75]
6+
},
7+
"title": {"text": "Sensor"},
8+
"type": "indicator",
9+
"mode": "number+delta",
10+
"delta": {"reference": 9},
11+
"ticker": {
12+
"showticker": true,
13+
"showpercentage": true
14+
},
15+
"value": 10
16+
}, {
17+
"type": "scatter3d",
18+
"name": "Sensor",
19+
"z":[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
20+
"x":[0, 1, 3, 5, 7, 9, 12, 15, 13, 15],
21+
"y":[50, 32, 12, 78, 65, 54, 69, 23, 32, 100],
22+
"marker": {
23+
"opacity": 1,
24+
"color": "rgba(125, 125, 125, 0.1)"
25+
}
26+
}],
27+
"layout": {
28+
"width": 400,
29+
"height": 300,
30+
"scene": {
31+
"camera": {
32+
"eye": {"x":-1.172852145187388,"y":1.8080244316159928,"z":0.20728121045818126}
33+
}
34+
},
35+
"font": {
36+
"color": "white",
37+
"family": "Dosis"
38+
},
39+
"paper_bgcolor": "black",
40+
"plot_bgcolor": "black",
41+
"margin": {
42+
"t": 25,
43+
"r": 25,
44+
"l": 25,
45+
"b": 25
46+
},
47+
"autosize": true
48+
},
49+
"config": {
50+
"responsive": true
51+
}
52+
}

0 commit comments

Comments
 (0)