Skip to content

Commit 34a5054

Browse files
committed
plotly#189 adding image based tests
1 parent e007f73 commit 34a5054

9 files changed

+61
-45
lines changed
26.3 KB
Loading
Loading
Loading
Loading
Loading
+6-39
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,13 @@
11
{
2-
"data": [
3-
{
4-
"x": [
5-
5,
6-
1,
7-
null,
8-
2,
9-
4
10-
],
11-
"y": [
12-
1,
13-
2,
14-
3,
15-
4,
16-
5
17-
],
18-
"connectgaps": false,
19-
"uid": "8ac13a"
20-
}
2+
"data": [{
3+
"x": ["c","a","e","b","d"],
4+
"y": [15,11,12,13,14]}
215
],
226
"layout": {
23-
"title": "category ascending",
247
"xaxis": {
8+
"title": "category ascending",
259
"type": "category",
26-
"range": [
27-
-0.18336673346693386,
28-
3.1833667334669338
29-
],
30-
"autorange": true,
3110
"categorymode": "category ascending",
32-
"categorylist": [2,4,5,1]
33-
},
34-
"yaxis": {
35-
"type": "linear",
36-
"range": [
37-
0.7070063694267517,
38-
5.292993630573249
39-
],
40-
"autorange": true
41-
},
42-
"height": 450,
43-
"width": 1000,
44-
"autosize": true
45-
}
11+
"categorylist": ["y","b","x","a","d","z","e","c", "q", "k"]
12+
}}
4613
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"data": [{
3+
"x": ["c","a","e","b","d"],
4+
"y": [15,11,12,13,14]}
5+
],
6+
"layout": {
7+
"title": "categorylist with truncated tails (y, q, k not plotted)",
8+
"xaxis": {
9+
"type": "category",
10+
"categorymode": "array",
11+
"categorylist": ["y","b","x","a","d","z","e","c", "q", "k"]
12+
}}
13+
}

test/image/mocks/axes_category_descending.json

+1-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"x": [
55
5,
66
1,
7-
null,
7+
3,
88
2,
99
4
1010
],
@@ -23,11 +23,6 @@
2323
"title": "category descending",
2424
"xaxis": {
2525
"type": "category",
26-
"range": [
27-
-0.18336673346693386,
28-
3.1833667334669338
29-
],
30-
"autorange": true,
3126
"categorymode": "category descending",
3227
"categorylist": [2,4,5,1]
3328
},
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"data": [
3+
{
4+
"x": [
5+
5,
6+
null,
7+
3,
8+
2,
9+
4
10+
],
11+
"y": [
12+
1,
13+
2,
14+
3,
15+
null,
16+
5
17+
],
18+
"connectgaps": false,
19+
"uid": "8ac13a"
20+
}
21+
],
22+
"layout": {
23+
"title": "category descending",
24+
"xaxis": {
25+
"type": "category",
26+
"categorymode": "category descending",
27+
"categorylist": [2,4,5,1]
28+
},
29+
"yaxis": {
30+
"type": "linear",
31+
"range": [
32+
0.7070063694267517,
33+
5.292993630573249
34+
],
35+
"autorange": true
36+
},
37+
"height": 450,
38+
"width": 1000,
39+
"autosize": true
40+
}
41+
}

0 commit comments

Comments
 (0)