<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wicri-demo.istex.fr/Wicri/Ingenierie/en/index.php?action=history&amp;feed=atom&amp;title=Module%3AChart%2Fdoc</id>
	<title>Module:Chart/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wicri-demo.istex.fr/Wicri/Ingenierie/en/index.php?action=history&amp;feed=atom&amp;title=Module%3AChart%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wicri-demo.istex.fr/Wicri/Ingenierie/en/index.php?title=Module:Chart/doc&amp;action=history"/>
	<updated>2026-04-19T02:57:04Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.10</generator>
	<entry>
		<id>https://wicri-demo.istex.fr/Wicri/Ingenierie/en/index.php?title=Module:Chart/doc&amp;diff=1338&amp;oldid=prev</id>
		<title>imported&gt;Jacques Ducloy: Created page with &quot;Module Chart exports two functions: bar chart and pie chart  ==Drawing Bar charts: &quot;bar chart&quot;==  ===Parameters===  {| class=&quot;wikitable&quot; |- ! parameter name !! what it does |-...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wicri-demo.istex.fr/Wicri/Ingenierie/en/index.php?title=Module:Chart/doc&amp;diff=1338&amp;oldid=prev"/>
		<updated>2017-12-12T21:58:23Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Module Chart exports two functions: bar chart and pie chart  ==Drawing Bar charts: &amp;quot;bar chart&amp;quot;==  ===Parameters===  {| class=&amp;quot;wikitable&amp;quot; |- ! parameter name !! what it does |-...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Module Chart exports two functions: bar chart and pie chart&lt;br /&gt;
&lt;br /&gt;
==Drawing Bar charts: &amp;quot;bar chart&amp;quot;==&lt;br /&gt;
&lt;br /&gt;
===Parameters===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! parameter name !! what it does&lt;br /&gt;
|-&lt;br /&gt;
|delimiter || string to delimit multiple values when given. default to colon ( : ). normally you do not want to touch this, it's provided for the off-chance you'll want to use colon as part of one of the parameters.&lt;br /&gt;
|-&lt;br /&gt;
|width ||number. if provided, must be at least 200. default: 500&lt;br /&gt;
|-&lt;br /&gt;
|height ||number. if provided, must be at least 200. default: 350&lt;br /&gt;
|-&lt;br /&gt;
|group n || (where &amp;quot;n&amp;quot; is a number. use &amp;quot;group 1&amp;quot;, &amp;quot;group 2&amp;quot; etc. for as many groups as there are in the graph) the values to be charted. see below.&lt;br /&gt;
|-&lt;br /&gt;
|tooltip n || tooltip to be associated with specific bar. If no tooltip for a specific bar is defined, and this bar has a link, then this link will be used as tooltip. Otherwise, the tooltip will be combined from the group name and the value, optionally with &amp;quot;units prefix&amp;quot; and &amp;quot;units suffix&amp;quot;. &lt;br /&gt;
|-&lt;br /&gt;
|links n || links to articles to be associated with specific bar &lt;br /&gt;
|-&lt;br /&gt;
|stack || whether to stack the different groups on top of each other. do not specify to show bars side by side. Any non-empty value means &amp;quot;yes&amp;quot;. To say &amp;quot;no&amp;quot;, simply do not supply this parameter at all, or leave the value blank.&lt;br /&gt;
|-&lt;br /&gt;
|{{nowrap|tooltip value accumulation}} || useful only with stack: when set to true, tooltip will show accumulated value of all blocks up to current one&lt;br /&gt;
|-&lt;br /&gt;
|colors || the colors used to denote the various groups. should have exactly as many values as # of groups. can be given as standard html-recognized color names, or using #xxx or #xxxxxx notation.&lt;br /&gt;
|-&lt;br /&gt;
|x legends || The legends for the X values.  Wikicode, such as internal links or templates can be used.&lt;br /&gt;
|-&lt;br /&gt;
|{{nowrap|hide group legends}} || if set to true, group legends will not be shown below chart. Any non-empty value means &amp;quot;yes&amp;quot;. To say &amp;quot;no&amp;quot;, simply do not supply this parameter at all, or leave the value blank.&lt;br /&gt;
|-&lt;br /&gt;
|{{Nowrap|scale per group}} || set to use separate Y- scale for each group. leave empty to use one scale for all groups. incompatible with &amp;quot;stack&amp;quot;. Note that even if some of the scales are exactly the same, they will be drawn separately when this setting is on. Any non-empty value means &amp;quot;yes&amp;quot;. To say &amp;quot;no&amp;quot;, simply do not supply this parameter at all, or leave the value blank.&lt;br /&gt;
|-&lt;br /&gt;
|{{nowrap|units prefix}} || used in tooltip. e.g., $, so values will show as &amp;quot;$500&amp;quot; instead of &amp;quot;500&amp;quot; in the tooltip&lt;br /&gt;
|-&lt;br /&gt;
|{{nowrap|units suffix}} || ditto for units suffix. use, e.g. &amp;quot;Kg&amp;quot; so values will show as 88Kg instead of 88 in tooltip. underscore (&amp;quot;_&amp;quot;) are replaced by spaces, to allow a space between the value and the suffix.&lt;br /&gt;
|-&lt;br /&gt;
| {{nowrap|group names}} || names of different groups&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Examples===&lt;br /&gt;
&lt;br /&gt;
==== Basic ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{ #invoke:Chart | bar chart&lt;br /&gt;
| group 1 = 40 : 50 : 60 : 20&lt;br /&gt;
| group 2 = 20 : 60 : 12 : 44&lt;br /&gt;
| group 3 = 55 : 14 : 33 : 5&lt;br /&gt;
| links 1 = Apple : McCintosh : Golden delicious&lt;br /&gt;
| links 2 = Banana : Apricot : Peach&lt;br /&gt;
| links 3 = Orange : Pear : Bear&lt;br /&gt;
| tooltip 2 = tooltip 1 : tooltip 2 : tooltip 3 : tooltip 4&lt;br /&gt;
| colors = green : yellow : orange&lt;br /&gt;
| group names = Apple : Banana : Orange&lt;br /&gt;
| x legends = Before : During : After : Post mortem&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{ #invoke:Chart | bar chart&lt;br /&gt;
| group 1 = 40 : 50 : 60 : 20&lt;br /&gt;
| group 2 = 20 : 60 : 12 : 44&lt;br /&gt;
| group 3 = 55 : 14 : 33 : 5&lt;br /&gt;
| links 1 = Apple : McCintosh : Golden delicious&lt;br /&gt;
| links 2 = Banana : Apricot : Peach&lt;br /&gt;
| links 3 = Orange : Pear : Bear&lt;br /&gt;
| tooltip 2 = tooltip 1 : tooltip 2 : tooltip 3 : tooltip 4&lt;br /&gt;
| colors = green : yellow : orange&lt;br /&gt;
| group names = Apple : Banana : Orange&lt;br /&gt;
| x legends = Before : During : After : Post mortem&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Stacked====&lt;br /&gt;
Here is the same graph, with more modest height and width, using &amp;quot;stack&amp;quot;, and adding &amp;quot;units suffix&amp;quot; for good measure:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{ #invoke:Chart | bar chart&lt;br /&gt;
| height = 250&lt;br /&gt;
| width = 300&lt;br /&gt;
| stack = 1&lt;br /&gt;
| group 1 = 40 : 50 : 60 : 20&lt;br /&gt;
| group 2 = 20 : 60 : 12 : 44&lt;br /&gt;
| group 3 = 55 : 14 : 33 : 5&lt;br /&gt;
| colors = green : yellow : orange&lt;br /&gt;
| group names = Apple : Banana : Orange&lt;br /&gt;
| units suffix = Kg&lt;br /&gt;
| x legends = Before : During : After : Post mortem&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{ #invoke:Chart | bar chart&lt;br /&gt;
| height = 250&lt;br /&gt;
| width = 300&lt;br /&gt;
| stack = 1&lt;br /&gt;
| group 1 = 40 : 50 : 60 : 20&lt;br /&gt;
| group 2 = 20 : 60 : 12 : 44&lt;br /&gt;
| group 3 = 55 : 14 : 33 : 5&lt;br /&gt;
| colors = green : yellow : orange&lt;br /&gt;
| units suffix = Kg&lt;br /&gt;
| group names = Apple : Banana : Orange&lt;br /&gt;
| x legends = Before : During : After : Post mortem&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Scale per group====&lt;br /&gt;
It is possible to show each of the groups using different scale and units:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{ #invoke:Chart | bar chart&lt;br /&gt;
| width = 800&lt;br /&gt;
| group 1 = 1500000 : 2500000 : 3500000&lt;br /&gt;
| group 2 = 200 : 5000 : 45000&lt;br /&gt;
| group 3 = 2000 : 5000 : 20000&lt;br /&gt;
| colors = red : blue : green&lt;br /&gt;
| group names = People : Cars : Average car cost&lt;br /&gt;
| x legends = 1920 : 1965 : 2002&lt;br /&gt;
| tooltip 2 = : There is no good data for number of cars in 1965. we use 5,000 as best estimate&lt;br /&gt;
| units prefix = : : $&lt;br /&gt;
| scale per group = 1&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{ #invoke:Chart | bar chart&lt;br /&gt;
| width = 800&lt;br /&gt;
| group 1 = 1500000 : 2500000 : 3500000&lt;br /&gt;
| group 2 = 200 : 5000 : 45000&lt;br /&gt;
| group 3 = 2000 : 5000 : 20000&lt;br /&gt;
| colors = red : blue : green&lt;br /&gt;
| group names = People : Cars : Average car cost&lt;br /&gt;
| x legends = 1920 : 1965 : 2002&lt;br /&gt;
| tooltip 2 = : There is no good data for number of cars in 1965. we use 5,000 as best estimate&lt;br /&gt;
| units prefix = : : $&lt;br /&gt;
| scale per group = 1&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Notice the &amp;quot;units prefix&amp;quot; field: we do not need prefix for the first 2 groups, so we use colons with no content. As whitespace is ignored, we could write &amp;quot;::$&amp;quot; instead of &amp;quot; : : $&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Also note the special tooltip for the &amp;quot;Cars&amp;quot; number for 1965.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is an example with large number of groups - mainly to test how it looks with large number of legends:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{ #invoke:Chart | bar chart&lt;br /&gt;
| width = 800&lt;br /&gt;
| height = 550&lt;br /&gt;
| group 1 = 1:2:3:4:5:4:3:2:1&lt;br /&gt;
| group 2 = 1:2:3:4:5:4:3:2:1&lt;br /&gt;
| group 3 = 1:2:3:4:5:4:3:2:1&lt;br /&gt;
| group 4 = 1:2:3:4:5:4:3:2:1&lt;br /&gt;
| group 5 = 1:2:3:4:5:4:3:2:1&lt;br /&gt;
| group 6 = 1:2:3:4:5:4:3:2:1&lt;br /&gt;
| group 7 = 1:2:3:4:5:4:3:2:1&lt;br /&gt;
| group 8 = 1:2:3:4:5:4:3:2:1&lt;br /&gt;
| group 9 = 1:2:3:4:5:4:3:2:1&lt;br /&gt;
| group 10 = 1:2:3:4:5:4:3:2:1&lt;br /&gt;
| group 11 = 1:2:3:4:5:4:3:2:1&lt;br /&gt;
| group 12 = 1:2:3:4:5:4:3:2:1&lt;br /&gt;
| group 13 = 1:2:3:4:5:4:3:2:1&lt;br /&gt;
| group 14 = 1:2:3:4:5:4:3:2:1&lt;br /&gt;
| group 15 = 1:2:3:4:5:4:3:2:1&lt;br /&gt;
| group 16 = 1:2:3:4:5:4:3:2:1&lt;br /&gt;
| group 17 = 1:2:3:4:5:4:3:2:1&lt;br /&gt;
| group 18 = 1:2:3:4:5:4:3:2:1&lt;br /&gt;
| group 19 = 1:2:3:4:5:4:3:2:1&lt;br /&gt;
| group 20 = 1:2:3:4:5:4:3:2:1&lt;br /&gt;
| group 21 = 1:2:3:4:5:4:3:2:1&lt;br /&gt;
| colors = Silver:Gray:Black:Red:Maroon:Yellow:Olive:Lime:Green:Aqua:Teal:Blue:Navy:Fuchsia:Purple:ForestGreen:Tomato:LightSeaGreen:RosyBrown:DarkOliveGreen:MediumVioletRed&lt;br /&gt;
| group names = Alabama:Alaska:Arizona:Arkansas:California:Colorado:Connecticut:Delaware:Florida:Georgia:Hawaii:Idaho:Illinois:Indiana:Iowa:Kansas:Kentucky:Louisiana:Maine:Maryland:Massachusetts&lt;br /&gt;
| x legends = 1920 : 1930 : 1940: 1950 : 1960 : 1970 : 1990 : 2000 : 2010&lt;br /&gt;
| units prefix = $&lt;br /&gt;
| units suffix = _billion&lt;br /&gt;
| stack = 1&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{ #invoke:Chart | bar chart&lt;br /&gt;
| width = 800&lt;br /&gt;
| height = 550&lt;br /&gt;
| group 1 = 1:2:3:4:5:4:3:2:1&lt;br /&gt;
| group 2 = 1:2:3:4:5:4:3:2:1&lt;br /&gt;
| group 3 = 1:2:3:4:5:4:3:2:1&lt;br /&gt;
| group 4 = 1:2:3:4:5:4:3:2:1&lt;br /&gt;
| group 5 = 1:2:3:4:5:4:3:2:1&lt;br /&gt;
| group 6 = 1:2:3:4:5:4:3:2:1&lt;br /&gt;
| group 7 = 1:2:3:4:5:4:3:2:1&lt;br /&gt;
| group 8 = 1:2:3:4:5:4:3:2:1&lt;br /&gt;
| group 9 = 1:2:3:4:5:4:3:2:1&lt;br /&gt;
| group 10 = 1:2:3:4:5:4:3:2:1&lt;br /&gt;
| group 11 = 1:2:3:4:5:4:3:2:1&lt;br /&gt;
| group 12 = 1:2:3:4:5:4:3:2:1&lt;br /&gt;
| group 13 = 1:2:3:4:5:4:3:2:1&lt;br /&gt;
| group 14 = 1:2:3:4:5:4:3:2:1&lt;br /&gt;
| group 15 = 1:2:3:4:5:4:3:2:1&lt;br /&gt;
| group 16 = 1:2:3:4:5:4:3:2:1&lt;br /&gt;
| group 17 = 1:2:3:4:5:4:3:2:1&lt;br /&gt;
| group 18 = 1:2:3:4:5:4:3:2:1&lt;br /&gt;
| group 19 = 1:2:3:4:5:4:3:2:1&lt;br /&gt;
| group 20 = 1:2:3:4:5:4:3:2:1&lt;br /&gt;
| group 21 = 1:2:3:4:5:4:3:2:1&lt;br /&gt;
| colors = Silver:Gray:Black:Red:Maroon:Yellow:Olive:Lime:Green:Aqua:Teal:Blue:Navy:Fuchsia:Purple:ForestGreen:Tomato:LightSeaGreen:RosyBrown:DarkOliveGreen:MediumVioletRed&lt;br /&gt;
| group names = Alabama:Alaska:Arizona:Arkansas:California:Colorado:Connecticut:Delaware:Florida:Georgia:Hawaii:Idaho:Illinois:Indiana:Iowa:Kansas:Kentucky:Louisiana:Maine:Maryland:Massachusetts&lt;br /&gt;
| x legends = 1920 : 1930 : 1940: 1950 : 1960 : 1970 : 1990 : 2000 : 2010&lt;br /&gt;
| units prefix = $&lt;br /&gt;
| units suffix = _billion&lt;br /&gt;
| stack = 1&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If there are many values, x legends can be diluted by using delimiters with nothing in between:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{ #invoke:Chart | bar chart&lt;br /&gt;
| group 1 = 1:2:3:4:5:6:7:8:9:10:11:12:13:14:15:16:17:18:19:20:21:22:23:24:25:26:27:28:29:30&lt;br /&gt;
:31:32:33:34:35:36:37:38:39:40:41:42:43:44:45:46:47:48:49:50:51:52:53:54:55:56:57:58:59&lt;br /&gt;
| units suffix = _Things&lt;br /&gt;
| group names = Some&lt;br /&gt;
| x legends = ::::1940::::::::::1950::::::::::1960::::::::::1970::::::::::1980::::::::::1990::::&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{ #invoke:Chart | bar chart&lt;br /&gt;
| group 1 = 1:2:3:4:5:6:7:8:9:10:11:12:13:14:15:16:17:18:19:20:21:22:23:24:25:26:27:28:29:30:31:&lt;br /&gt;
32:33:34:35:36:37:38:39:40:41:42:43:44:45:46:47:48:49:50:51:52:53:54:55:56:57:58:59&lt;br /&gt;
| units suffix =  _Things&lt;br /&gt;
| group names = Some&lt;br /&gt;
| x legends = ::::1940::::::::::1950::::::::::1960::::::::::1970::::::::::1980::::::::::1990::::&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
== Drawing Pie charts: &amp;quot;pie chart&amp;quot; ==&lt;br /&gt;
&lt;br /&gt;
===Parameters===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! parameter name !! what it does&lt;br /&gt;
|-&lt;br /&gt;
|'''delimiter''' || string to delimit multiple values when given. default to colon ( : ). normally you do not want to touch this, it's provided for the off-chance you'll want to use colon as part of one of the parameters.&lt;br /&gt;
|-&lt;br /&gt;
|'''radius''' ||number. The radius of the pie in pixels&lt;br /&gt;
|-&lt;br /&gt;
|'''slices''' || Tuples, in parenthesis. Use delimiter inside the tuple:&lt;br /&gt;
 ( Value1 : Name1 : Color1 : Link1  ) ( Value2 : Name2 : Color2 : Link2 ) ...&lt;br /&gt;
The values are numbers. The numbers can be integers or decimal fractions, or using the scientific notation:  7.24e6, 7,240,000, or 7240000.00 are all acceptable for 7 Million and 240 thousands.&lt;br /&gt;
&lt;br /&gt;
Names are strings. Colors are optional. you can use any [[Web colors]], such as &amp;quot;red&amp;quot; or &amp;quot;#FF0000&amp;quot;. Up to 26 default colors are defined, but if your pie has more than 26 slices, you must define the colors of slice #27 and up. Links can be external or internal links, including linking to internal anchors and paragraphs in the same article, like so: &amp;lt;nowiki&amp;gt;[[Article|Tooltip]] for internal link, [[#Paragraph name|Tooltip]] for linking to an anchor in same article, or [http://example.org Tooltip] for external link.&amp;lt;/nowiki&amp;gt; &lt;br /&gt;
|-&lt;br /&gt;
|{{nowrap|'''slice n'''}}|| alternative syntax to &amp;quot;slices&amp;quot;. n is the slice number, beginning with 1. make sure not to skip: if you define &amp;quot;slice 1&amp;quot;, &amp;quot;slice 2&amp;quot;, &amp;quot;slice 4&amp;quot;, &amp;quot;slice 5&amp;quot;..., skipping slice 3, only the first two slices will be shown. this syntax is incompatible with &amp;quot;slices&amp;quot;, i.e., they should not be used in conjunction in the same invocation. Using both &amp;quot;slices&amp;quot; and &amp;quot;slice n&amp;quot; in the same invocation will cause unpredictable results. The value is like a single &amp;quot;tuple&amp;quot; as explained above, but without the parenthesis:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 | slice 1 = Value1 : Name1 : Color1 : Link1&lt;br /&gt;
 | slice 2 = Value2 : Name2 : Color2 : Link2&lt;br /&gt;
 | ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This syntax allows you to use parenthesis in names, links, and colors.&lt;br /&gt;
|-&lt;br /&gt;
|'''percent'''|| if used, the percentage of each slice will be calculated and added to the legend: so if you have two slices, like so: ( 1 : Younglings ) ( 3 : elders ), and use define &amp;quot;percent&amp;quot;, the legends will become &amp;quot;Younglings: 1 (25%)&amp;quot; and &amp;quot;Elders: 3 (75%)&amp;quot;, instead of simply &amp;quot;Younglings: 1&amp;quot; and &amp;quot;Elders: 3&amp;quot;. Any non-empty value means &amp;quot;yes&amp;quot;. To say &amp;quot;no&amp;quot;, simply do not supply this parameter at all, or leave the value blank.&lt;br /&gt;
|-&lt;br /&gt;
|'''{{nowrap|units prefix}}''' || used in the legend. e.g., defining &amp;quot;units prefix=$&amp;quot;, values will show as &amp;quot;$500&amp;quot; instead of &amp;quot;500&amp;quot; in the legends&lt;br /&gt;
|-&lt;br /&gt;
|'''{{nowrap|units suffix}}''' || ditto for units suffix. use, e.g. &amp;quot;Kg&amp;quot; so values will show as 88Kg instead of 88 in legend. underscore (&amp;quot;_&amp;quot;) are replaced by spaces, to allow a space between the value and the suffix.&lt;br /&gt;
|-&lt;br /&gt;
|'''{{nowrap|hide group legends}}''' || Setting to true prevents displaying of the group legends under the chart. Any non-empty value means &amp;quot;yes&amp;quot;. To say &amp;quot;no&amp;quot;, simply do not supply this parameter at all, or leave the value blank.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Examples===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{#invoke:Chart|pie chart&lt;br /&gt;
| radius = 150&lt;br /&gt;
| slices = &lt;br /&gt;
    ( 1000000 : Apples ) &lt;br /&gt;
    ( 2000000 : Bananas  : gold) &lt;br /&gt;
    ( 1440000 : Apricots ) &lt;br /&gt;
    ( 6.4e5 : Pears : : [[Pear|Pears]] )&lt;br /&gt;
    ( 750,000 : Pineapples )&lt;br /&gt;
| units suffix = _Tonne&lt;br /&gt;
| percent = true&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Note that we can leave the color empty to use the default, but in order to add the link to &amp;quot;Pear&amp;quot;, &lt;br /&gt;
we had to mark the parameter by adding an extra delimiter to mark the omitted color parameter   &lt;br /&gt;
&lt;br /&gt;
Also note that the values can be provided with &amp;quot;language specific&amp;quot; format (like 1,000), &lt;br /&gt;
or scientific notation like 6.4e5. In the legends, numbers will always be displayed in &lt;br /&gt;
language-adjusted mode (can look different if module imported to other wikis).&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{#invoke:Chart|pie chart&lt;br /&gt;
| radius = 150&lt;br /&gt;
| slices = &lt;br /&gt;
    ( 1000000 : Apples ) &lt;br /&gt;
    ( 2000000 : Bananas  : gold) &lt;br /&gt;
    ( 1440000 : Apricots ) &lt;br /&gt;
    ( 6.4e5 : Pears : : [[Pear|Pears]] )&lt;br /&gt;
    ( 750,000 : Pineapples )&lt;br /&gt;
| units suffix = _Tonne&lt;br /&gt;
| percent = true&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An example for the alternative syntax with &amp;quot;slice 1&amp;quot;, &amp;quot;slice 2&amp;quot; etc.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{#invoke:chart|pie chart&lt;br /&gt;
|radius= 200&lt;br /&gt;
|units suffix = _Units&lt;br /&gt;
| slice 1 = 1 : 1&lt;br /&gt;
| slice 2 = 7 : 7&lt;br /&gt;
| slice 3 = 8 : 8&lt;br /&gt;
| slice 4 = 9 : 9&lt;br /&gt;
| slice 5 = 10 : 10&lt;br /&gt;
| slice 6 = 11 : 11&lt;br /&gt;
| slice 7  = 12 : 12&lt;br /&gt;
| slice 8  = 13 : 13&lt;br /&gt;
| slice 9  = 14 : 14&lt;br /&gt;
| slice 10 = 15 : 15&lt;br /&gt;
| slice 11 = 16 : 16&lt;br /&gt;
| slice 12 = 17 : 17&lt;br /&gt;
| slice 13 = 18 : 18&lt;br /&gt;
| slice 14 = 19 : 19&lt;br /&gt;
| slice 15 = 20 : 20&lt;br /&gt;
| slice 16 = 21 : 21&lt;br /&gt;
| slice 17 = 22 : 22&lt;br /&gt;
| slice 18 = 23 : 23&lt;br /&gt;
| slice 19 = 24 : 24&lt;br /&gt;
| slice 20 = 25 : 25&lt;br /&gt;
| slice 21 = 26 : 26&lt;br /&gt;
| slice 22 = 27 : 27&lt;br /&gt;
| slice 23 = 28 : 28&lt;br /&gt;
| slice 24 = 29 : 29&lt;br /&gt;
| slice 25 = 30 : 30&lt;br /&gt;
| slice 26 = 31 : 31&lt;br /&gt;
| percent = true&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{#invoke:chart|pie chart&lt;br /&gt;
|radius= 200&lt;br /&gt;
|units suffix = _Units&lt;br /&gt;
| slice 1 = 1 : 1&lt;br /&gt;
| slice 2 = 7 : 7&lt;br /&gt;
| slice 3 = 8 : 8&lt;br /&gt;
| slice 4 = 9 : 9&lt;br /&gt;
| slice 5 = 10 : 10&lt;br /&gt;
| slice 6 = 11 : 11&lt;br /&gt;
| slice 7  = 12 : 12&lt;br /&gt;
| slice 8  = 13 : 13&lt;br /&gt;
| slice 9  = 14 : 14&lt;br /&gt;
| slice 10 = 15 : 15&lt;br /&gt;
| slice 11 = 16 : 16&lt;br /&gt;
| slice 12 = 17 : 17&lt;br /&gt;
| slice 13 = 18 : 18&lt;br /&gt;
| slice 14 = 19 : 19&lt;br /&gt;
| slice 15 = 20 : 20&lt;br /&gt;
| slice 16 = 21 : 21&lt;br /&gt;
| slice 17 = 22 : 22&lt;br /&gt;
| slice 18 = 23 : 23&lt;br /&gt;
| slice 19 = 24 : 24&lt;br /&gt;
| slice 20 = 25 : 25&lt;br /&gt;
| slice 21 = 26 : 26&lt;br /&gt;
| slice 22 = 27 : 27&lt;br /&gt;
| slice 23 = 28 : 28&lt;br /&gt;
| slice 24 = 29 : 29&lt;br /&gt;
| slice 25 = 30 : 30&lt;br /&gt;
| slice 26 = 31 : 31&lt;br /&gt;
| percent = true&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>imported&gt;Jacques Ducloy</name></author>
		
	</entry>
</feed>