]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - pgsrc/Help%2FChartPlugin
Set PhpWiki version to 1.5.4
[SourceForge/phpwiki.git] / pgsrc / Help%2FChartPlugin
1 Date: Mon, 29 Jun 2015 12:04:28 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.5.4)
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 a recent browser (Firefox, Opera, Chrome, Safari)
15 then you should see the examples.
16
17 == Usage ==
18 {{{
19 <<Chart width=200 height=200 type=line color=green data="5, 7, 11, 3, 15" >>
20 }}}
21
22 == Arguments ==
23
24 {| class="bordered"
25 |-
26 ! Argument
27 ! Description
28 ! Default value
29 |-
30 | **width**
31 | Graph width in pixels
32 | 200
33 |-
34 | **height**
35 | Graph height in pixels
36 | 200
37 |-
38 | **type**
39 | line, bar or pie
40 | line
41 |-
42 | **data**
43 | Graph data: a list of numbers separated by comma
44 | //None// (required argument)
45 |}
46
47 == Examples ==
48
49 === Line chart ===
50
51 {{{
52 <<Chart type=line
53         data="5, 7, 11, 3, 15"
54 >>
55 }}}
56
57 <<Chart type=line
58         data="5, 7, 11, 3, 15"
59 >>
60
61 === Bar chart ===
62
63 {{{
64 <<Chart type=bar
65         color=red
66         data="5, 7, 11, 3, 15"
67 >>
68 }}}
69
70 <<Chart type=bar
71         color=red
72         data="5, 7, 11, 3, 15"
73 >>
74
75 === Pie chart ===
76
77 {{{
78 <<Chart type=pie
79         color=blue
80         data="5, 7, 11, 3, 15"
81 >>
82 }}}
83
84 <<Chart type=pie
85         color=blue
86         data="5, 7, 11, 3, 15"
87 >>
88
89 == Known Problems ==
90
91 With multiple Chart plugins on the same page the 2nd and
92 subsequent ones will have the same width and height.
93
94 == Author ==
95 * Marc-Etienne Vargenau
96
97 == See Also ==
98
99 <noinclude>
100 ----
101 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]
102 </noinclude>