Skip to content

Commit 0efc12f

Browse files
committed
add more docs
1 parent b671e12 commit 0efc12f

File tree

3 files changed

+42
-2
lines changed

3 files changed

+42
-2
lines changed

docs/make.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,10 @@ makedocs(
5555
"Usage" => [
5656
scatter
5757
],
58-
"Interactive" => "man/interactive.md"
59-
58+
"Interactive" => [
59+
"Pyramid" => "man/pyramid.md",
60+
"Nations" => "man/nations.md"
61+
]
6062
# "API" => Any[
6163
# "Functions" => "lib/functions.md"
6264
# ]

docs/src/man/nations.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Wealth and Health of nations
2+
3+
```@example
4+
using InMemoryDatasets, DLMReader, StatisticalGraphics, Chain
5+
6+
nations = filereader(joinpath(dirname(pathof(StatisticalGraphics)),
7+
"..", "docs", "assets", "nations.csv"),
8+
emptycolname=true, quotechar='"')
9+
10+
@chain nations begin
11+
sort([:population, :continent], rev=[true, false]);
12+
groupby(:year);
13+
sgmanipulate(
14+
Bubble(x=:gdpPercap,
15+
y=:lifeExp,
16+
colorresponse=:region,
17+
colormodel=:category,
18+
size=:population,
19+
outlinecolor=:white,
20+
labelresponse=:country,
21+
labelsize=8,
22+
labelcolor=:colorresponse,
23+
maxsize=70,
24+
tooltip=true
25+
),
26+
showheaders=true,
27+
headercolor="#aaaaaa33",
28+
headersize=150,
29+
headeroffset=-400,
30+
xaxis=Axis(type=:log, nice=false, grid=true, gridthickness=0.1),
31+
yaxis=Axis(grid=true, gridthickness=0.1),
32+
width=600,
33+
height=600,
34+
clip=false,
35+
wallcolor=:black
36+
)
37+
end
38+
```
File renamed without changes.

0 commit comments

Comments
 (0)