Skip to content

Commit 9da5a1b

Browse files
committed
add splom mutli axis type mock
- note that axis type can be overwritten in layout
1 parent 9e1869d commit 9da5a1b

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed
35.6 KB
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"data": [
3+
{
4+
"type": "splom",
5+
"opacity": 0.9,
6+
"showupperhalf": false,
7+
"diagonal": {"visible": false },
8+
"dimensions": [
9+
{
10+
"label": "numeric",
11+
"values": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
12+
},
13+
{
14+
"label": "decimal",
15+
"values": [-3.3, 2.2, -1.1, 0, 1.1, -2.2, 3.3, 4.4, -5, 6]
16+
},
17+
{
18+
"label": "bool",
19+
"values": [false, true, true, true, false, true, false, false, false, true]
20+
},
21+
{
22+
"label": "0/1",
23+
"values": [0, 1, 1, 1, 1, 1, 0, 0, 0, 0]
24+
},
25+
{
26+
"label": "string",
27+
"values": ["lyndon", "richard", "gerald", "jimmy", "ronald", "george", "bill", "georgeW", "barack", "donald"]
28+
}
29+
]
30+
}
31+
],
32+
"layout": {
33+
"hovermode": "closest",
34+
"margin": {
35+
"b": 80,
36+
"l": 80,
37+
"r": 30,
38+
"t": 30
39+
},
40+
"yaxis2": {"type": "category"},
41+
"yaxis3": {"type": "category"},
42+
"xaxis3": {"type": "category"},
43+
"xaxis4": {"type": "category"}
44+
}
45+
}

0 commit comments

Comments
 (0)