aboutsummaryrefslogtreecommitdiffstats
path: root/doc/user/pie
blob: cb0fd381de3f4d47915305318e7df87177441622 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
@Chapter
  @Title { Pie Graphs }
  @Tag { pie }
@Begin
@LP
This chapter describes how to draw pie graphs, using the @Code "@Pie"
piegraphs. @Index { pie graphs }
pie. @Index { @Code "@Pie" symbol }
symbol.  For example,
@ID @OneRow -1px @Break @Code @Verbatim {
@Pie
{
    @Slice
        weight { 20 }
        label { Admin (20%) }
    @Slice
        weight { 40 }
        paint { green }
        label { Research (40%) }
    @Slice
        weight { 40 }
        paint { lightred }
        label { Teaching (40%) }
}
}
produces the pie graph
@CD @Pie
{
    @Slice
        weight { 20 }
        label { Admin (20%) }
    @Slice
        weight { 40 }
        paint { green }
        label { Research (40%) }
    @Slice
        weight { 40 }
        paint { lightred }
        label { Teaching (40%) }
}
This example shows off most of what @Code "@Pie" can do.
# there are many options, but for the most part they offer
# detailed adjustments, not additional features.
@BeginSections
@Include { pie_intr }
@Include { pie_slic }
@Include { pie_over }
@Include { pie_capt }
@Include { pie_labe }
@Include { pie_erro }
@Include { pie_summ }
@EndSections
@End @Chapter