]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - pgsrc/Help%2FChartPlugin
Mediawiki header
[SourceForge/phpwiki.git] / pgsrc / Help%2FChartPlugin
1 Date: Sat, 24 Jan 2009 8:15:24 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.3.14-20080124)
3 X-Rcs-Id: $Id$
4 Content-Type: application/x-phpwiki;
5   pagename=Help%2FChartPlugin;
6   flags=PAGE_LOCKED;
7   markup=2;
8   charset=iso-8859-1
9 Content-Transfer-Encoding: binary
10
11 The **Chart** [[Help:WikiPlugin|plugin]] allows to easily draw simple graphs on a wiki page.
12
13 The browser must support SVG in order graphs to be displayed.
14
15 == Usage ==
16 <verbatim>
17 <<Chart width=200 height=200 type=line color=green data="5, 7, 11, 3, 15" >>
18 </verbatim>
19
20 == Arguments ==
21
22 {| class="bordered"
23 |-
24 ! Argument
25 ! Description
26 ! Default value
27 |-
28 | <b>width</b>
29 | Graph width in pixels
30 | 200
31 |-
32 | <b>height</b>
33 | Graph height in pixels
34 | 200
35 |-
36 | <b>type</b>
37 | line, bar or pie
38 | line
39 |-
40 | <b>data</b>
41 | Graph data: a list of numbers separated by comma
42 | //none//
43 |}
44
45 == Examples ==
46
47 === Line chart ===
48
49 <verbatim>
50 <<Chart type=line
51         data="5, 7, 11, 3, 15"
52 >>
53 </verbatim>
54
55 <<Chart type=line
56         data="5, 7, 11, 3, 15"
57 >>
58
59 === Bar chart ===
60
61 <verbatim>
62 <<Chart type=bar
63         color=red
64         data="5, 7, 11, 3, 15"
65 >>
66 </verbatim>
67
68 <<Chart type=bar
69         color=red
70         data="5, 7, 11, 3, 15"
71 >>
72
73 === Pie chart ===
74
75 <verbatim>
76 <<Chart type=pie
77         color=blue
78         data="5, 7, 11, 3, 15"
79 >>
80 </verbatim>
81
82 <<Chart type=pie
83         color=blue
84         data="5, 7, 11, 3, 15"
85 >>
86
87 == Author ==
88 * Marc-Etienne Vargenau
89
90 == See Also ==
91
92 ----
93 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]
94