Skip to content

Commit f6dd5d5

Browse files
committed
add ternary axis layer mock
1 parent 472225f commit f6dd5d5

File tree

2 files changed

+59
-0
lines changed

2 files changed

+59
-0
lines changed
29 KB
Loading
+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"data": [
3+
{
4+
"type": "scatterternary",
5+
"mode": "markers",
6+
"a": [70, 75, 5, 10],
7+
"b": [10, 20, 60, 80],
8+
"c": [20, 5, 35, 10],
9+
"name": "not clipped",
10+
"marker": {
11+
"symbol": "square",
12+
"size": 40,
13+
"line": { "width": 4 }
14+
},
15+
"cliponaxis": false
16+
},
17+
{
18+
"type": "scatterternary",
19+
"mode": "markers",
20+
"name": "clipped",
21+
"a": [10, 20, 10, 15, 10, 20],
22+
"b": [90, 70, 20, 5, 10, 10],
23+
"c": [0, 10, 70, 80, 80, 70],
24+
"marker": {
25+
"symbol": "diamond",
26+
"size": 30,
27+
"line": { "width": 4 }
28+
},
29+
"cliponaxis": true
30+
}
31+
],
32+
"layout": {
33+
"ternary": {
34+
"sum": 100,
35+
"aaxis": {
36+
"title": "",
37+
"layer": "below traces",
38+
"linewidth": 4,
39+
"min": 4.5
40+
},
41+
"baxis": {
42+
"title": "",
43+
"layer": "below traces",
44+
"linewidth": 4,
45+
"min": 7.5
46+
},
47+
"caxis": {
48+
"title": "",
49+
"layer": "below traces",
50+
"linewidth": 4,
51+
"min": 7.5
52+
}
53+
},
54+
"title": "ternary axes below traces",
55+
"showlegend": false,
56+
"height": 450,
57+
"width": 500
58+
}
59+
}

0 commit comments

Comments
 (0)