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