Skip to content

Commit 390f292

Browse files
committed
add mock of splom with conflicting axis types
1 parent 1823904 commit 390f292

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"data": [
3+
{
4+
"type": "splom",
5+
"showupperhalf": false,
6+
"diagonal": {"visible": false },
7+
"dimensions": [
8+
{
9+
"label": "numeric",
10+
"values": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
11+
},
12+
{
13+
"label": "decimal",
14+
"values": [-3.3, 2.2, -1.1, 0, 1.1, -2.2, 3.3, 4.4, -5, 6]
15+
},
16+
{
17+
"label": "bool",
18+
"values": [false, true, true, true, false, true, false, false, false, true],
19+
"axis": {"type": "category"}
20+
},
21+
{
22+
"label": "0/1",
23+
"values": [0, 1, 1, 1, 1, 1, 0, 0, 0, 0],
24+
"axis": {"type": "category"}
25+
},
26+
{
27+
"label": "blank",
28+
"values": []
29+
},
30+
{
31+
"label": "string",
32+
"values": ["lyndon", "richard", "gerald", "jimmy", "ronald", "george", "bill", "georgeW", "barack", "donald"]
33+
}
34+
]
35+
}
36+
],
37+
"layout": {
38+
"hovermode": "closest",
39+
"margin": {"b": 80, "l": 80, "r": 30, "t": 30},
40+
"xaxis3": {"type": "linear"},
41+
"annotations": [{
42+
"showarrow": false,
43+
"xref": "paper", "yref": "paper",
44+
"xanchor": "right", "yanchor": "top",
45+
"x": 1, "y": 1,
46+
"text": "Should <b>not</b> see points in the \"bool\" dimension<br>as it has conflicting axis types",
47+
"borderwidth": 1,
48+
"bordercolor": "black",
49+
"borderpad": 5
50+
}]
51+
}
52+
}

0 commit comments

Comments
 (0)