Skip to content

Commit db4912e

Browse files
committed
more mocks
1 parent d75e27d commit db4912e

File tree

6 files changed

+304
-63
lines changed

6 files changed

+304
-63
lines changed

src/traces/carpet/plot.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ function drawGridLines(xaxis, yaxis, layer, axis, axisLetter, gridlines) {
102102
el.attr('d', path)
103103
.style('stroke-width', gridline.width)
104104
.style('stroke', gridline.color)
105+
.style('stroke-dasharray', Drawing.dashStyle(gridline.dash, gridline.width))
105106
.style('fill', 'none');
106107
});
107108

Lines changed: 243 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,243 @@
1+
{
2+
"data": [
3+
{
4+
"x": [
5+
1,
6+
2,
7+
3
8+
],
9+
"y": [
10+
2,
11+
1,
12+
2
13+
]
14+
},
15+
{
16+
"type": "scattersmith",
17+
"real": [
18+
0,
19+
0,
20+
1,
21+
1,
22+
2,
23+
5,
24+
10
25+
],
26+
"imag": [
27+
0,
28+
1,
29+
0,
30+
-2,
31+
-2,
32+
-5,
33+
-10
34+
],
35+
"subplot": "smith"
36+
},
37+
{
38+
"type": "scatterpolar",
39+
"r": [
40+
2,
41+
3,
42+
4,
43+
5,
44+
2
45+
],
46+
"theta": [
47+
90,
48+
180,
49+
250,
50+
300,
51+
90
52+
],
53+
"subplot": "polar"
54+
},
55+
{
56+
"type": "scattergeo",
57+
"mode": "markers+lines",
58+
"lon": [
59+
-100,
60+
0,
61+
100
62+
],
63+
"lat": [
64+
-45,
65+
0,
66+
45
67+
],
68+
"subplot": "geo"
69+
},
70+
{
71+
"type": "scatterternary",
72+
"a": [
73+
2,
74+
1,
75+
1
76+
],
77+
"b": [
78+
1,
79+
2,
80+
1
81+
],
82+
"c": [
83+
1,
84+
1,
85+
2.12345
86+
],
87+
"subplot": "ternary"
88+
}
89+
],
90+
"layout": {
91+
"xaxis": {
92+
"domain": [
93+
0,
94+
0.33
95+
],
96+
"type": "linear",
97+
"range": [
98+
0.8719530783206721,
99+
3.128046921679328
100+
],
101+
"autorange": true,
102+
"griddash": "longdash",
103+
"gridcolor": "black"
104+
},
105+
"yaxis": {
106+
"domain": [
107+
0,
108+
0.5
109+
],
110+
"type": "linear",
111+
"range": [
112+
0.9202898550724637,
113+
2.079710144927536
114+
],
115+
"autorange": true,
116+
"griddash": "dashdot",
117+
"gridcolor": "black"
118+
},
119+
"smith": {
120+
"realaxis": {
121+
"tickfont": {
122+
"size": 8
123+
},
124+
"griddash": "dot",
125+
"gridcolor": "black"
126+
},
127+
"imaginaryaxis": {
128+
"tickfont": {
129+
"size": 8
130+
},
131+
"griddash": "dash",
132+
"gridcolor": "black"
133+
},
134+
"domain": {
135+
"x": [
136+
0.33,
137+
0.66
138+
],
139+
"y": [
140+
0.5,
141+
1
142+
]
143+
}
144+
},
145+
"polar": {
146+
"sector": [
147+
0,
148+
360
149+
],
150+
"domain": {
151+
"x": [
152+
0,
153+
0.33
154+
],
155+
"y": [
156+
0.55,
157+
1
158+
]
159+
},
160+
"radialaxis": {
161+
"tickfont": {
162+
"size": 8
163+
},
164+
"griddash": "4px,10px,2px,2px",
165+
"gridcolor": "black"
166+
},
167+
"angularaxis": {
168+
"tickfont": {
169+
"size": 8
170+
},
171+
"rotation": -90,
172+
"direction": "clockwise",
173+
"griddash": "dot",
174+
"gridcolor": "black"
175+
}
176+
},
177+
"geo": {
178+
"domain": {
179+
"x": [
180+
0.35,
181+
0.66
182+
],
183+
"y": [
184+
0,
185+
0.5
186+
]
187+
},
188+
"lataxis": {
189+
"showgrid": true,
190+
"griddash": "dash",
191+
"gridcolor": "black"
192+
},
193+
"lonaxis": {
194+
"showgrid": true,
195+
"griddash": "dot",
196+
"gridcolor": "black"
197+
}
198+
},
199+
"ternary": {
200+
"domain": {
201+
"x": [
202+
0.7,
203+
1
204+
],
205+
"y": [
206+
0,
207+
1
208+
]
209+
},
210+
"aaxis": {
211+
"title": {
212+
"text": "A"
213+
},
214+
"griddash": "longdashdot",
215+
"gridcolor": "black"
216+
},
217+
"baxis": {
218+
"title": {
219+
"text": "B"
220+
},
221+
"griddash": "40px",
222+
"gridcolor": "black"
223+
},
224+
"caxis": {
225+
"title": {
226+
"text": "C"
227+
},
228+
"griddash": "dashdot",
229+
"gridcolor": "black"
230+
}
231+
},
232+
"margin": {
233+
"t": 25,
234+
"l": 25,
235+
"r": 25,
236+
"b": 25
237+
},
238+
"showlegend": false,
239+
"height": 450,
240+
"width": 1000,
241+
"autosize": true
242+
}
243+
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"data": [
3+
{
4+
"type": "carpet",
5+
"a": [0, 5e-7, 0.000001],
6+
"b": [0, 500000, 1000000],
7+
"y": [
8+
[1.00000, 1.32287, 1.73205],
9+
[1.32287, 1.58113, 1.93649],
10+
[1.73205, 1.93649, 2.23606]
11+
],
12+
"aaxis": {
13+
"minorgridcount": 3,
14+
"gridcolor": "black",
15+
"minorgridcolor": "red",
16+
"griddash": "dot",
17+
"minorgriddash": "dash"
18+
},
19+
"baxis": {
20+
"minorgridcount": 3,
21+
"gridcolor": "black",
22+
"minorgridcolor": "red",
23+
"griddash": "dash",
24+
"minorgriddash": "dot"
25+
}
26+
}
27+
],
28+
"layout": {
29+
"width": 500,
30+
"height": 500,
31+
"margin": {
32+
"t": 40,
33+
"r": 20,
34+
"b": 40,
35+
"l": 40
36+
},
37+
"dragmode": "pan"
38+
}
39+
}

0 commit comments

Comments
 (0)