]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - pgsrc/Help%2FChartPlugin
<noinclude>
[SourceForge/phpwiki.git] / pgsrc / Help%2FChartPlugin
1 Date: Fri, 10 Sep 2010 13:46:13 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.4.0RC1)
3 X-Rcs-Id: $Id$
4 Content-Type: application/x-phpwiki;
5   pagename=Help%2FChartPlugin;
6   flags=PAGE_LOCKED%2CEXTERNAL_PAGE;
7   markup=2;
8   charset=UTF-8
9 Content-Transfer-Encoding: binary
10
11 The **Chart** [[Help:WikiPlugin|plugin]] allows to easily draw simple graphs on a wiki page.
12
13 Three graph formats are possible: line, bar and pie. In pie mode, negative values are ignored.
14
15 The browser must support SVG in order graphs to be displayed.
16 If you are using Internet Explorer 6 + Adobe SVGviewer (often included
17 by default with Windows XP) or SVG-enabled Firefox (2.0 or above)
18 then you should see the examples.
19
20 == Usage ==
21 {{{
22 <<Chart width=200 height=200 type=line color=green data="5, 7, 11, 3, 15" >>
23 }}}
24
25 == Arguments ==
26
27 {| class="bordered"
28 |-
29 ! Argument
30 ! Description
31 ! Default value
32 |-
33 | **width**
34 | Graph width in pixels
35 | 200
36 |-
37 | **height**
38 | Graph height in pixels
39 | 200
40 |-
41 | **type**
42 | line, bar or pie
43 | line
44 |-
45 | **data**
46 | Graph data: a list of numbers separated by comma
47 | //none//
48 |}
49
50 == Examples ==
51
52 === Line chart ===
53
54 {{{
55 <<Chart type=line
56         data="5, 7, 11, 3, 15"
57 >>
58 }}}
59
60 <<Chart type=line
61         data="5, 7, 11, 3, 15"
62 >>
63
64 === Bar chart ===
65
66 {{{
67 <<Chart type=bar
68         color=red
69         data="5, 7, 11, 3, 15"
70 >>
71 }}}
72
73 <<Chart type=bar
74         color=red
75         data="5, 7, 11, 3, 15"
76 >>
77
78 === Pie chart ===
79
80 {{{
81 <<Chart type=pie
82         color=blue
83         data="5, 7, 11, 3, 15"
84 >>
85 }}}
86
87 <<Chart type=pie
88         color=blue
89         data="5, 7, 11, 3, 15"
90 >>
91
92 == Known Problems ==
93
94 With multiple Chart plugins on the same page the 2nd and
95 subsequent ones will have the same width and height.
96
97 == Author ==
98 * Marc-Etienne Vargenau
99
100 == See Also ==
101
102 <noinclude>
103 ----
104 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]
105 </noinclude>