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