Skip to content

Commit e3bece1

Browse files
committed
Merge pull request #1 from plotly/documentation-friday
Documentation friday
2 parents ce943fa + 9f156e2 commit e3bece1

File tree

2 files changed

+1849
-58
lines changed

2 files changed

+1849
-58
lines changed

hard-coded/json/chart-types/line-and-scatter.json

+165-58
Original file line numberDiff line numberDiff line change
@@ -92,66 +92,173 @@
9292
{
9393
"examplename": "line-style",
9494
"figure": {
95-
"data": [
96-
{
97-
"x": [
98-
1,
99-
2,
100-
3
101-
],
102-
"y": [
103-
4,
104-
5,
105-
6
106-
],
107-
"type": "scatter",
108-
"name": "Experiment",
109-
"line": {
110-
"color": "rgb(3,78,123)",
111-
"width": 6,
112-
"dash": "dot"
113-
},
114-
"marker": {
115-
"opacity": 1.0,
116-
"symbol": "square",
117-
"size": 12,
118-
"color": "rgb(54,144,192)",
119-
"line": {
120-
"width": 3,
121-
"color": "darkblue"
95+
"data": [
96+
{
97+
"x": [
98+
52698,
99+
43117
100+
],
101+
"y": [
102+
53,
103+
31
104+
],
105+
"text": [
106+
"United States",
107+
"Canada"
108+
],
109+
"name": "North America",
110+
"mode": "markers",
111+
"marker": {
112+
"line": {
113+
"color": "white",
114+
"width": 0.5
115+
},
116+
"size": 12,
117+
"color": "rgb(164, 194, 244)"
118+
},
119+
"type": "scatter"
120+
},
121+
{
122+
"x": [
123+
39317,
124+
37236,
125+
35650,
126+
30066,
127+
29570,
128+
27159,
129+
23557,
130+
21046,
131+
18007
132+
],
133+
"y": [
134+
33,
135+
20,
136+
13,
137+
19,
138+
27,
139+
19,
140+
49,
141+
44,
142+
38
143+
],
144+
"text": [
145+
"Germany",
146+
"Britain",
147+
"France",
148+
"Spain",
149+
"Italy",
150+
"Czech Rep.",
151+
"Greece",
152+
"Poland"
153+
],
154+
"name": "Europe",
155+
"mode": "markers",
156+
"marker": {
157+
"line": {
158+
"color": "white",
159+
"width": 0.5
160+
},
161+
"size": 12,
162+
"color": "rgb(255, 217, 102)"
163+
},
164+
"type": "scatter"
165+
},
166+
{
167+
"x": [
168+
42952,
169+
37037,
170+
33106,
171+
17478,
172+
9813,
173+
5253,
174+
4692,
175+
3899
176+
],
177+
"y": [
178+
23,
179+
42,
180+
54,
181+
89,
182+
14,
183+
99,
184+
93,
185+
70
186+
],
187+
"text": [
188+
"Australia",
189+
"Japan",
190+
"South Korea",
191+
"Malaysia",
192+
"China",
193+
"Indonesia",
194+
"Philippines",
195+
"India"
196+
],
197+
"name": "Asia/Pacific",
198+
"mode": "markers",
199+
"marker": {
200+
"line": {
201+
"color": "white",
202+
"width": 0.5
203+
},
204+
"size": 12,
205+
"color": "rgb(234, 153, 153)"
206+
},
207+
"type": "scatter"
208+
},
209+
{
210+
"x": [
211+
19097,
212+
18601,
213+
15595,
214+
13546,
215+
12026,
216+
7434,
217+
5419
218+
],
219+
"y": [
220+
43,
221+
47,
222+
56,
223+
80,
224+
86,
225+
93,
226+
80
227+
],
228+
"text": [
229+
"Chile",
230+
"Argentina",
231+
"Mexico",
232+
"Venezuela",
233+
"Venezuela",
234+
"El Salvador",
235+
"Bolivia"
236+
],
237+
"name": "Latin America",
238+
"mode": "markers",
239+
"marker": {
240+
"line": {
241+
"color": "white",
242+
"width": 0.5
243+
},
244+
"size": 12,
245+
"color": "rgb(142, 124, 195)"
246+
},
247+
"type": "scatter"
122248
}
123-
}
124-
},
125-
{
126-
"x": [
127-
1,
128-
2,
129-
3
130-
],
131-
"y": [
132-
2,
133-
10,
134-
12
135-
],
136-
"type": "scatter",
137-
"name": "Control",
138-
"line": {
139-
"color": "purple",
140-
"width": 4,
141-
"dash": "dashdot"
142-
},
143-
"marker": {
144-
"opacity": 0.9,
145-
"symbol": "cross",
146-
"size": 16,
147-
"color": "fuchsia",
148-
"line": {
149-
"color": "",
150-
"width": 0
249+
],
250+
"layout": {
251+
"title": "Quarter 1 Growth",
252+
"xaxis": {
253+
"title": "GDP per Capita",
254+
"showgrid": false,
255+
"zeroline": false
256+
},
257+
"yaxis": {
258+
"title": "Percent",
259+
"showline": false
151260
}
152-
}
153261
}
154-
]
155262
}
156263
},
157264
{
@@ -191,4 +298,4 @@
191298
]
192299
}
193300
}
194-
]
301+
]

0 commit comments

Comments
 (0)