Template talk:Pie chart
Background colorSince the pie chart is shown in a thumb frame, which has #f9f9f9 as the background color, shouldn't File:Circle frame.svg have the same background color? — Edokter • Talk • 12:08, 16 December 2010 (UTC)
Vertical start point?Is it possible to have the start-point re-set to 0° instead of 90°? I find this almost useful as it is, but not quite. Fan | talk 10:32, 30 August 2011 (UTC) ZoomIf there anyway to widen the chart? Say with a 400px parameter, for example, or a zoom=200 (percent), where the current size is zoom=100? --RoyGoldsmith (talk) 16:01, 8 August 2012 (UTC) Text wrapI may be doing something wrong, but when I've tested this template it doesn't seem to allow the text to wrap around. This is obviously a problem when the objective is to embed the chart in the text, so any advice would be appreciated. CanadianJudoka (talk) 22:14, 8 September 2012 (UTC)
"Scaling up" when total does not = 100It would be nice if the chart automatically "scaled up" when the total does not quite equal 100% due to rounding by adding the same amount (%wise) to each portion. --JFH (talk) 16:34, 27 April 2013 (UTC)
Broken on mobile browsers; Not backwards compatibleSee [1]. There should be support in m:Extension:EasyTimeline for this. We aren't even showing SVG's inline because we fear the client has no support. And SVG is more widely supported than CSS3. Wikipedia shouldn't be a CSS3 playground. --Ysangkok (talk) 11:36, 1 May 2013 (UTC)
iw cyTried using this pie chart on the Welsh Wiki, but to no avail! Can some one please take a look here. As you can see, there's a flaw somewhere. It works fine on the corresponding Wiki-en. Many thanks. Llywelyn2000 (talk) 07:36, 3 August 2013 (UTC) Limit of 15 instead of 10 slicesI amended the first sentence of the template documentation that states "The labels and values of up to ten 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." In fact, pie-chart works with up to 15 different items, not 10. See example. Thought that's rather important to mention in section "Limitations". Of course, an increase to 20 slices would be appreciated;) – Cheers, Rfassbind -talk 14:04, 27 April 2015 (UTC) New extension available: GRAPHSee example and details on [Wikitech-l] GRAPH extension is now live everywhere!. Helder 12:24, 6 May 2015 (UTC) Extension:Graph based template createdTemplate:PieChart provides a way to add a pie chart using extension:graph. The vega specification is in the template. You can add a pie chart now with {{PieChart|title="Fruits"|radius=125|values= [ {"x":"Peaches", "y":100}, {"x":"Plums", "y":32}, {"x":"Blueberries", "y":80}, {"x":"Strawberries", "y":46}, {"x":"Bananes", "y":41} ] }}
{{Graph:PieChart|legend=Fruits|radius=125 | rangeliteral= ["red", "green","red","green","red","green","red","green","red","green"] | values= [ {"x":"perziken", "y":10}, {"x":"pruimen", "y":10}, {"x":"bessen", "y":10}, {"x":"aardbeien", "y":10}, {"x":"bananen", "y":10}, {"x":"peach", "y":10}, {"x":"plum", "y":10}, {"x":"blueberries", "y":10}, {"x":"strawberries", "y":10}, {"x":"bananas", "y":10} ] }}
Sortable caption?I wonder if the caption could be made sortable, by converting it to a table, if an option is selected. In the pie chart of numbers of speakers in groups Varieties of Chinese, the Chinese varieties are sorted in the same order as they are mentioned in the text (perhaps from north to south?). As a result, you can't see at a glance which varieties are spoken more than others. It would be nice if the template could generate a table like the one below, which would allow the entries in the pie chart to be ranked by name or value. — Eru·tuon 01:15, 18 September 2016 (UTC)
HistogramCan you make one of these templates for histograms with variable bin widths? So you specify the bin boundaries and the amount in each bin, and it plots so that the area of the box matches the amount in that bin. Similar to https://en.wikipedia.org/wiki/File:Travel_time_histogram_total_n_Stata.png or https://commons.wikimedia.org/wiki/File:AkkaTechnologies_-_histogramme_des_ages_employes_2013.png It's not easy to make these charts with typical plotting tools, and a lot of times this data is shown instead using pie charts, but pie charts are an inappropriate choice. — Preceding unsigned comment added by 71.167.64.138 (talk) 17:57, 17 December 2016 (UTC) SquarePie chart is square on mobile browser on sino-Tibetan. Pi day joke? Samples render ok on this page. Lollipop (talk) 02:44, 10 March 2018 (UTC) Lollipop (talk) 02:44, 10 March 2018 (UTC) Conflict with Blackscreen gadgetThis template conflicts with the blackscreen gadget. There is a thread about this at Wikipedia:Village pump (technical)#Deformed pie chart. DuncanHill (talk) 13:37, 4 June 2018 (UTC) This is still a problem on the mobile app when using an Android phone in Dark Mode. See Wikipedia:Village pump (technical)#Return of the deformed pie chart. -Apocheir (talk) 23:04, 25 September 2021 (UTC)
Notice of discussion regarding this templateThis template, and whether or not to change the display of the output, is being discussed here. Primefac (talk) 14:05, 7 September 2018 (UTC) Remove IE6 supportInternet Explorer 6 only supports SSL, not TLS, whereas Wikimedia servers only support TLS, not SSL, over HTTPS connections. Wikimedia's use of HSTS means that it is not possible to view Wikipedia with an insecure HTTP-only connection, and the lack of overlap in protocol support between IE6 and the WMF means that attempting to view a WMF wiki with IE6 now results in a protocol error (and has for at least a year). Because of this, IE6 support in this template is now an unnecessary bit of cruft that should be removed. I am aware of the
colorsTo editor Guarapiranga: The changes you made tilted the entire color-scheme towards blue. As there was no consensus for this, I've reverted you. Per WP:BRD, please discuss. Chris Troutman (talk) 13:45, 10 November 2019 (UTC)
With the greatest respect to everyone involved so far, but we'd need extraordinarily good reasons to keep the previous scheme. It's downright abysmal: it relies heavily on hue differences, which means it's bad for colour-blind people (sequential colours are not always contrastive: for example, the first two colours look too similar for readers with protanopia), and it's bad for printing (all but two of the colours are indistinguishable in greyscale). Furthermore, its use of strong saturated primary colours is ugly (particularly jarring is the juxtaposition of strong green and red, which are the first two colours in the list and so the ones most likely to take up the largest neighbouring chunks of the pie). The old colour scheme would have been OK in the early days of the internet, but we really should do better now. A colour scheme needs to be accessible, it needs to display acceptably in a wide range of environments and it needs to be aesthetically pleasing. The only reason I could think of for sticking to the old scheme is the possibility that editors might have somehow relied on the the default colours being what they are: either for colour symbolism, or when referring to the chart colours in the text outside the chart. The first scenario is extremely unlikely given the template setup, but the second one is plausible. How likely is it that there will be references to the colours within article text? I've had a look at a random selection of 15 articles that use the template and I couldn't spot any obvious such mentions. (Tellingly, of these 15 articles, only 2 were using the default colours). I'll restore Guarapiranga' changes. Of the colour palettes at [2] this is the one with the most robust contrast for sequential colours, so it's really good for this use. However, I would not object if any other suitable scheme is chosen instead. – Uanfala (talk) 00:21, 23 December 2019 (UTC)
Discussion at Wikipedia:Village pump (technical) § Pie chart troublesYou are invited to join the discussion at Wikipedia:Village pump (technical) § Pie chart troubles. {{u|Sdkb}} talk 08:21, 9 August 2020 (UTC)
BrewerColorLegendsDear creators of templates, today I was working in my sandbox and I wanted to apply something like a color list. After a quick search in list of templates I found BrewerColorLegends. How can I add them to my pie chart, is it even possible? If not, is planned or is there a substitution for this kind of problem? With Regards, --A09090091 (talk) 09:53, 2 December 2020 (UTC)
Obtrusive white line at 180 and 270 degrees on Firefox (Desktop)I am observing a white line at 180 and 270 degrees overlapping whatever color segment that exists,on Firefox browser 113.0.1 (64 bit) on Ubuntu 18.04, while the pie chart is proper on Google chrome Version 107.0.5304.87 (Official Build) (64-bit). (Please see the template page using Firefox browser.) Android version of Firefox is also displaying it properly. Is there any fix possible to the code? Arjunaraoc (talk) 01:36, 14 May 2023 (UTC)
Incorrect colors (at least) on Safari in iOSSome people wrote about incorrect pie chart colors in the article Oulu#Languages. I noticed they wrote the comments with a mobile phone, so I checked the article on Safari 17.3 in iOS 17.3, and I noticed the same color issue. Here's a comparison of the correct and incorrect colors: Hidden So, any idea what's causing this? --JAAqqO (talk) 17:02, 10 February 2024 (UTC)
Default label placement on Pie chartWhy do have label placement on the bottom by default? Can't it be move to left or right? {{Pie chart
|thumb = right
|radius = 100
|footer = Source: [[Election Commission of India]]
|caption = '''Political parties' success rate on Pilibhit constituency'''
|value1 = 23.52
|value2 = 29.41
|value3 = 17.64
|value4 = 11.76
|value5 = 5.88
|label1 = [[Indian National Congress|INC]] (4 terms)
|label2 = [[Bharatiya Janata Party|BJP]] (5 terms)
|label3 = [[Praja Socialist Party|PSP]] (3 terms)
|label4 = [[Janata Dal|JD]] (2 terms)
|label5 = [[Janata Party|JP]] (1 term)
|color1 = {{party color|Indian National Congress}}
|color2 = {{party color|Bharatiya Janata Party}}
|color3 = {{party color|Praja Socialist Party}}
|color4 = {{party color|Janata Dal}}
|color5 = {{party color|Janata Party}}
| other = yes
| other-label = [[Independent (politician)|IND]] (2 terms)
| other-color = {{party color|Independent (politician)}}
}}
Exotica24 (talk) 19:30, 28 April 2024 (UTC)
|