Skip to content

Commit 543b615

Browse files
committed
first cut polar mocks!
1 parent 689414c commit 543b615

20 files changed

+2916
-72
lines changed

test/image/baselines/polar_blank.png

17.5 KB
Loading
87 KB
Loading

test/image/baselines/polar_dates.png

44.4 KB
Loading
113 KB
Loading

test/image/baselines/polar_fills.png

42 KB
Loading

test/image/baselines/polar_line.png

3.54 KB
Loading
-52.2 KB
Loading

test/image/baselines/polar_sector.png

169 KB
Loading
58.9 KB
Loading

test/image/baselines/polar_ticks.png

138 KB
Loading

test/image/mocks/polar_blank.json

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"data": [{
3+
"type": "scatterpolar",
4+
"r": [0],
5+
"theta": [0]
6+
}],
7+
"layout": {
8+
"polar": {
9+
"angularaxis": {
10+
"showline": true,
11+
"showgrid": false,
12+
"showticklabels": false,
13+
"ticks": ""
14+
},
15+
"radialaxis": {
16+
"showline": false,
17+
"showgrid": false,
18+
"showticklabels": false,
19+
"ticks": ""
20+
}
21+
},
22+
"width": 600,
23+
"height": 500
24+
}
25+
}
+95
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
{
2+
"data": [
3+
{
4+
"type": "scatterpolar",
5+
"mode": "lines+markers",
6+
"name": "angular categories",
7+
"r": [5, 4, 2, 4, 5],
8+
"theta": ["a", "b", "c", "d", "a"],
9+
"fill": "toself"
10+
},
11+
{
12+
"type": "scatterpolar",
13+
"mode": "lines+markers",
14+
"name": "radial categories",
15+
"r": ["a", "b", "c", "d", "b", "f", "a"],
16+
"theta": [1, 4, 2, 1.5, 1.5, 6, 5],
17+
"thetaunit": "radians",
18+
"fill": "toself",
19+
"subplot": "polar2"
20+
},
21+
{
22+
"type": "scatterpolar",
23+
"mode": "lines+markers",
24+
"name": "angular categories (w/ categoryarray)",
25+
"r": [5, 4, 2, 4, 5],
26+
"theta": ["a", "b", "c", "d", "a"],
27+
"fill": "toself",
28+
"subplot": "polar3"
29+
},
30+
{
31+
"type": "scatterpolar",
32+
"mode": "lines+markers",
33+
"name": "radial categories (w/ category descending)",
34+
"r": ["a", "b", "c", "d", "b", "f", "a", "a"],
35+
"theta": [45, 90, 180, 200, 300, 15, 20, 45],
36+
"fill": "toself",
37+
"subplot": "polar4"
38+
}
39+
],
40+
"layout": {
41+
"polar": {
42+
"domain": {
43+
"x": [0, 0.46],
44+
"y": [0.56, 1]
45+
},
46+
"radialaxis": {
47+
"position": 45
48+
}
49+
},
50+
"polar2": {
51+
"domain": {
52+
"x": [0, 0.46],
53+
"y": [0, 0.44]
54+
},
55+
"radialaxis": {
56+
"position": 180,
57+
"tickangle": -180
58+
}
59+
},
60+
"polar3": {
61+
"domain": {
62+
"x": [0.54, 1],
63+
"y": [0.56, 1]
64+
},
65+
"radialaxis": {
66+
"position": -45
67+
},
68+
"angularaxis": {
69+
"categoryarray": ["d", "a", "c", "b"]
70+
}
71+
},
72+
"polar4": {
73+
"domain": {
74+
"x": [0.54, 1],
75+
"y": [0, 0.44]
76+
},
77+
"radialaxis": {
78+
"categoryorder": "category descending"
79+
},
80+
"angularaxis": {
81+
"thetaunit": "radians",
82+
"dtick": 0.3141592653589793
83+
}
84+
},
85+
"legend": {
86+
"x": 0.5,
87+
"y": -0.05,
88+
"xanchor": "center",
89+
"yanchor": "top"
90+
},
91+
"width": 550,
92+
"height": 550,
93+
"margin": {"l": 40, "r": 40, "b": 60, "t": 20, "pad": 0}
94+
}
95+
}

test/image/mocks/polar_dates.json

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"data": [
3+
{
4+
"type": "scatterpolar",
5+
"mode": "lines+markers",
6+
"name": "",
7+
"r": [5, 4, 2, 4, 3],
8+
"theta": ["2017-01-01", "2017-04-01", "2017-08-01", "2017-12-01", "2018-01-01"],
9+
"line": {
10+
"shape": "spline"
11+
}
12+
},
13+
{
14+
"mode": "lines+markers",
15+
"name": "",
16+
"x": [5, 4, 2, 4, 3],
17+
"y": ["2017-01-01", "2017-04-01", "2017-08-01", "2017-12-01", "2018-01-01"],
18+
"line": {
19+
"shape": "spline"
20+
}
21+
}
22+
],
23+
"layout": {
24+
"polar": {
25+
"domain": {
26+
"x": [0, 0.46],
27+
"y": [0.54, 1]
28+
}
29+
},
30+
"yaxis": {
31+
"domain": [0, 0.46]
32+
},
33+
"legend": {
34+
"x": 0.5,
35+
"y": -0.05,
36+
"xanchor": "center",
37+
"yanchor": "top"
38+
},
39+
"hovermode": "closest",
40+
"width": 550,
41+
"height": 550,
42+
"margin": {"l": 80, "r": 40, "b": 60, "t": 20, "pad": 0}
43+
}
44+
}

0 commit comments

Comments
 (0)