<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.p1gsel.com/p1gwars/index.php?action=history&amp;feed=atom&amp;title=Template%3APie_chart%2Fdoc</id>
	<title>Template:Pie chart/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.p1gsel.com/p1gwars/index.php?action=history&amp;feed=atom&amp;title=Template%3APie_chart%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://www.p1gsel.com/p1gwars/index.php?title=Template:Pie_chart/doc&amp;action=history"/>
	<updated>2026-04-17T05:02:02Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://www.p1gsel.com/p1gwars/index.php?title=Template:Pie_chart/doc&amp;diff=6670&amp;oldid=prev</id>
		<title>P1gsel: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://www.p1gsel.com/p1gwars/index.php?title=Template:Pie_chart/doc&amp;diff=6670&amp;oldid=prev"/>
		<updated>2026-01-11T21:07:46Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:07, 11 January 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key p1gsel_wiki:diff:1.41:old-6539:rev-6670 --&gt;
&lt;/table&gt;</summary>
		<author><name>P1gsel</name></author>
	</entry>
	<entry>
		<id>https://www.p1gsel.com/p1gwars/index.php?title=Template:Pie_chart/doc&amp;diff=6539&amp;oldid=prev</id>
		<title>Rosie: Replaced content with &quot;-&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.p1gsel.com/p1gwars/index.php?title=Template:Pie_chart/doc&amp;diff=6539&amp;oldid=prev"/>
		<updated>2026-01-11T19:57:08Z</updated>

		<summary type="html">&lt;p&gt;Replaced content with &amp;quot;-&amp;quot;&lt;/p&gt;
&lt;a href=&quot;https://www.p1gsel.com/p1gwars/index.php?title=Template:Pie_chart/doc&amp;amp;diff=6539&amp;amp;oldid=6669&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Rosie</name></author>
	</entry>
	<entry>
		<id>https://www.p1gsel.com/p1gwars/index.php?title=Template:Pie_chart/doc&amp;diff=6669&amp;oldid=prev</id>
		<title>wikipedia&gt;Gonnym at 15:59, 5 December 2025</title>
		<link rel="alternate" type="text/html" href="https://www.p1gsel.com/p1gwars/index.php?title=Template:Pie_chart/doc&amp;diff=6669&amp;oldid=prev"/>
		<updated>2025-12-05T15:59:22Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://www.p1gsel.com/p1gwars/index.php?title=Template:Pie_chart/doc&amp;amp;diff=6669&amp;amp;oldid=4775&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>wikipedia&gt;Gonnym</name></author>
	</entry>
	<entry>
		<id>https://www.p1gsel.com/p1gwars/index.php?title=Template:Pie_chart/doc&amp;diff=4775&amp;oldid=prev</id>
		<title>Rosie: Created page with &quot;{{Documentation subpage}} &lt;!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE --&gt; __NOTOC__  === Usage === The labels and values of up to 30 slices may be specified. All the parameters for six slices are included below; to include more slices, copy the code for one of the others, changing the digit at the end of each parameter name. &lt;pre&gt;&lt;nowiki&gt; {{Pie chart | thumb =  | caption =  | other =  | label1 =remember  | value1 =16.6 | color1 =2 | label2 =unde...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.p1gsel.com/p1gwars/index.php?title=Template:Pie_chart/doc&amp;diff=4775&amp;oldid=prev"/>
		<updated>2025-11-04T20:15:56Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Documentation subpage}} &amp;lt;!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE --&amp;gt; __NOTOC__  === Usage === The labels and values of up to 30 slices may be specified. All the parameters for six slices are included below; to include more slices, copy the code for one of the others, changing the digit at the end of each parameter name. &amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt; {{Pie chart | thumb =  | caption =  | other =  | label1 =remember  | value1 =16.6 | color1 =2 | label2 =unde...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&amp;lt;!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE --&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
The labels and values of up to 30 slices may be specified. All the parameters for six slices are included below; to include more slices, copy the code for one of the others, changing the digit at the end of each parameter name.&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
{{Pie chart&lt;br /&gt;
| thumb = &lt;br /&gt;
| caption = &lt;br /&gt;
| other = &lt;br /&gt;
| label1 =remember &lt;br /&gt;
| value1 =16.6&lt;br /&gt;
| color1 =2&lt;br /&gt;
| label2 =understand&lt;br /&gt;
| value2 =16.6&lt;br /&gt;
| color2 =3 &lt;br /&gt;
| label3 =apply&lt;br /&gt;
| value3 =16.6 &lt;br /&gt;
| color3 =5 &lt;br /&gt;
| label4 =analyze&lt;br /&gt;
| value4 =16.6&lt;br /&gt;
| color4 =6&lt;br /&gt;
| label5 =evaluate&lt;br /&gt;
| value5 =16.6&lt;br /&gt;
| color5 =9&lt;br /&gt;
| label6 =design&lt;br /&gt;
| value6 =16.6&lt;br /&gt;
| color6 =10&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The parameter {{para|thumb}} specifies which side of the page the chart is floated to and defaults to &amp;lt;code&amp;gt;right&amp;lt;/code&amp;gt;, as with image files. To make the chart appear on the &amp;#039;&amp;#039;left&amp;#039;&amp;#039; side of the page, specify {{para|thumb|left}}.&lt;br /&gt;
* The parameter {{para|caption}} specifies a string of text that appears on a line just before the legend.&lt;br /&gt;
* The parameter {{para|other}}, if specified, will cause an &amp;quot;Other&amp;quot; item to appear in the legend.&lt;br /&gt;
* Each {{para|label&amp;#039;&amp;#039;N&amp;#039;&amp;#039;}} is a string of text that appears in the legend entry for a slice. Omitting it will cause a legend entry to not be shown for that slice.&lt;br /&gt;
* Each {{para|value&amp;#039;&amp;#039;N&amp;#039;&amp;#039;}} is the percentage that the slice represents. Do &amp;#039;&amp;#039;not&amp;#039;&amp;#039; include the percent sign. Also note that it is shown in the legend as written (just after the label), without any rounding or other reformatting.&lt;br /&gt;
* Each {{para|color&amp;#039;&amp;#039;N&amp;#039;&amp;#039;}} is a CSS color code or name. If omitted, it will default to the following hues:&lt;br /&gt;
{{div col|colwidth=10em}}&lt;br /&gt;
# {{legend|#a6cee3|light blue}}&lt;br /&gt;
# {{legend|#1f78b4|strong blue}}&lt;br /&gt;
# {{legend|#b2df8a|light green}}&lt;br /&gt;
# {{legend|#33a02c|strong green}}&lt;br /&gt;
# {{legend|#fb9a99|fuchsia}}&lt;br /&gt;
# {{legend|#e31a1c|red}}&lt;br /&gt;
# {{legend|#fdbf6f|light orange}}&lt;br /&gt;
# {{legend|#ff7f00|strong orange}}&lt;br /&gt;
# {{legend|#cab2d6|light purple}}&lt;br /&gt;
# {{legend|#6a3d9a|strong purple}}&lt;br /&gt;
# {{legend|#ffff99|light yellow}}&lt;br /&gt;
# {{legend|#b15928|brown}}&lt;br /&gt;
{{div col end}}&lt;br /&gt;
&lt;br /&gt;
=== Limitations ===&lt;br /&gt;
* The values need to be percentages.&lt;br /&gt;
* Google Chrome and Safari do not appear to anti-alias borders, so the lines are a bit jagged. (For Chrome, this issue seems to be resolved; tested with version 26.)&lt;br /&gt;
* No labels can be put on the slices themselves.&lt;br /&gt;
* Inherently, it is not possible to save a copy of the chart using the browser&amp;#039;s &amp;quot;Save Image&amp;quot; function.&lt;br /&gt;
* Max. number of slices that can be displayed: &amp;#039;&amp;#039;&amp;#039;30&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== How it works ===&lt;br /&gt;
{{Pie chart&lt;br /&gt;
|other = yes&lt;br /&gt;
|value1 = 42&lt;br /&gt;
|label1 = One&lt;br /&gt;
|value2 = 32&lt;br /&gt;
|label2 = Two&lt;br /&gt;
|value3 = 12&lt;br /&gt;
|label3 = Three&lt;br /&gt;
|value4 = 3&lt;br /&gt;
|label4 = Four&lt;br /&gt;
|value5 = 2&lt;br /&gt;
|label5 = Five&lt;br /&gt;
|value6 = 1&lt;br /&gt;
|label6 = Six&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
This is an &amp;#039;&amp;#039;experimental&amp;#039;&amp;#039; template that draws pie charts using a single image, a lot of (inline) CSS code generated by parser functions, and &amp;#039;&amp;#039;absolutely no JavaScript&amp;#039;&amp;#039;. It uses a technique for [http://erezsh.wordpress.com/2008/07/31/drawing-diagonal-lines-with-css/ drawing diagonal lines in CSS] exploiting the fact that borders set on elements are miter joined. Thus, it is possible to set one border to an opaque color, with the others fully transparent, to form a diagonal line. The angle of the line can be controlled by adjusting the widths of two adjacent borders (one of them opaque) relative to each other.&lt;br /&gt;
&lt;br /&gt;
Pie slices are drawn in clockwise order in a counterclockwise direction. These pie slices are positioned:&lt;br /&gt;
* Below a [[:File:Circle frame.svg|200×200px image]] having a transparent circle on a light-colored background (same as the background color used for CSS class &amp;lt;code&amp;gt;thumbinner&amp;lt;/code&amp;gt;)&lt;br /&gt;
* Inside a container element with &amp;lt;code&amp;gt;overflow: hidden;&amp;lt;/code&amp;gt; set&lt;br /&gt;
This allows only the part of each slice that is inside the circle to be visible on the page.&lt;br /&gt;
&lt;br /&gt;
Most of the code in {{tlx|Pie chart/slice}} is divided into five sections, the first four corresponding to quadrants of the circle and the last to cleanly cover the case in which one slice occupies 100% of the chart.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
{{Pie chart&lt;br /&gt;
| caption=Religion in the Czech Republic as of 2001.&lt;br /&gt;
| other = yes&lt;br /&gt;
| label1 = Atheists and agnostics&lt;br /&gt;
| value1 = 59&lt;br /&gt;
| color1 = silver&lt;br /&gt;
| label2 = Catholics&lt;br /&gt;
| value2 = 26.8&lt;br /&gt;
| color2 = #008&lt;br /&gt;
| label3 = Protestants&lt;br /&gt;
| value3 = 2.5&lt;br /&gt;
| color3 = #08f&lt;br /&gt;
}}&lt;br /&gt;
The following example of [[Template:Pie chart]] generates the pie chart shown at right. &lt;br /&gt;
&amp;lt;pre style=&amp;quot;overflow:auto&amp;quot;&amp;gt;&lt;br /&gt;
{{Pie chart&lt;br /&gt;
| caption=Religion in the Czech Republic as of 2001.&lt;br /&gt;
| other = yes&lt;br /&gt;
| label1 = Atheists and agnostics&lt;br /&gt;
| value1 = 59&lt;br /&gt;
| color1 = silver&lt;br /&gt;
| label2 = Catholics&lt;br /&gt;
| value2 = 26.8&lt;br /&gt;
| color2 = #008&lt;br /&gt;
| label3 = Protestants&lt;br /&gt;
| value3 = 2.5&lt;br /&gt;
| color3 = #08f&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Rosie</name></author>
	</entry>
</feed>