Content deleted Content added
Guarapiranga (talk | contribs) |
→Category: Re |
||
(20 intermediate revisions by 12 users not shown) | |||
Line 260:
''—[[User:Mzajac |Michael]] [[User talk:Mzajac |Z.]] <small>2017-03-30 15:07 z</small>''
:+1 for this request, especially forcing integers. — [[User:JFG|JFG]] <sup>[[User talk:JFG|talk]]</sup> 00:51, 19 August 2017 (UTC)
:: {{U|Mzajac}}, try {{para|y tick marks|5}} or some other positive integer value. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 20:06, 5 June 2019 (UTC)
::* "y tick marks" works to avoid decimal intervals (once you know it), but can need changing as the numbers change.
::: Currently the y axis jumps from 10->15, 20->30, and 100->150 as numbers increase. 10->12->15 & 20->24->30 etc would be nice.
::: y_interval would solve most problems and be easier to manage. Otherwise y_integers (rounding interval up ?) would help.
::: - [[User:Rod57|Rod57]] ([[User talk:Rod57|talk]]) 18:07, 3 January 2024 (UTC)
== Stacked Bar Charts with zero values display a single line of colour instead of nothing. ==
Line 475 ⟶ 482:
::::::::::Will do. [[User:Guarapiranga|— 𝐆𝐮𝐚𝐫𝐚𝐩𝐢𝐫𝐚𝐧𝐠𝐚]] ([[User talk:Guarapiranga|talk]]) 12:43, 26 May 2021 (UTC)
::::::::::{{done}} — [[User:Guarapiranga|𝐆𝐮𝐚𝐫𝐚𝐩𝐢𝐫𝐚𝐧𝐠𝐚]] [[User talk:Guarapiranga|☎]] 04:05, 2 June 2021 (UTC)
== Weird visual glitches with stacked bar charts ==
If you look at bar chart in https://en.wikipedia.org/wiki/History_of_Tesla,_Inc.#Timeline_of_production_and_sales there are two types of visual glitches - one can be seen in Q3 & 4Q 2015 bars, where the grey part of the bar is both too thick (at least in Q3's case since on 6 cars ot of over 11.5k were Model Xs, so the grey part should have been only ~1 pixel thick) and in the wrong place (in looks the be inside the black part instead of on top of it) and in Q4 2018 bar there's a gap between grey and yellow parts.
Or at least it looks like https://i.imgur.com/FMFjYv6.jpg to me on my Android tablet.
== Chart suddenly behaves strange ==
Hello!
Can someone help me with the way the chart [[w:sq:Kategoria:Gabime CS1|here]] is suddenly behaving?
I was guided here after [https://en.wikipedia.org/w/index.php?title=User_talk:Trappist_the_monk&oldid=1049797955#Uhm... this discussion]. - [[User:Klein Muçi|Klein Muçi]] ([[User talk:Klein Muçi|talk]]) 22:34, 13 October 2021 (UTC)
: {{fixed}} via [[Special:Diff/1050400291]] [[User:Pppery|* Pppery *]] [[User talk:Pppery|<sub style="color:#800000">it has begun...</sub>]] 15:57, 17 October 2021 (UTC)
== Excessive whitespace when there is no legend ==
{{Image frame
|content={{ #invoke:Chart | bar chart
| width=300
| height=200
| group 1 = 2263.79 : 2298.27 : 2378.93 : 2443.85 : 2511.09 : 2553.18 : 2504.78 : 2616.24 : 2626.34 : 2660.85 : 2608.18 : 2597.81 : 2558.06 : 2629.82 : 2517.98 : 2346.19 : 2358.86 : 2410.37 : 2441.33 : 2477.30 : 2502.82 : 2562.76
| colors = blue
| group names = Generation (TWh)
| x legends = 1997 : : : 2000 : : : : : 2005 : : : : : 2010 : : : : : 2015 : : :
}}
|caption = Nuclear power generation (TWh)
}}
As you can see in the example at right, the Chart module adds excessive whitespace below the chart when there is no legend. Could someone fix this? [[User:Nosferattus|Nosferattus]] ([[User talk:Nosferattus|talk]]) 01:13, 8 March 2024 (UTC)
== X-axis label==
I've just come across this module via the [[WikiProject]] article. Is there currently a way of adding a label to the x-axis in a line below the x-legends? In the Nuclear power example above, it would probably just say "Year" but it can be useful where the overall meaning of the x-legends is open to interpretation. I couldn't find it in the code but maybe there's currently a way of doing it with a linebreak or something. Thanks --[[User:Northernhenge|Northernhenge]] ([[User talk:Northernhenge|talk]]) 10:07, 4 April 2024 (UTC)
== Legend columns ==
Hard-coding the legend columns width (<code>[[Module:Chart#L-50|column-width:12em]]</code>) is not a great idea and doesn't allow using long group names (like [[United_Nations_High_Commissioner_for_Refugees#2019|here]], where the legend had to be redone manually under the chart), while at the same time producing too few unnecessarily wide columns (like in the [[Module:Chart#Basic|"basic" example]], where it would be much better to show all 3 names in a single row). Please change the columns to automatic or allow overriding the column width or count. — [[User:Mikhail Ryazanov|Mikhail Ryazanov]] ([[User talk:Mikhail Ryazanov|talk]]) 03:11, 23 June 2024 (UTC)
== dark mode ==
hey, did anyone look at this thing in dark mode?
are there any issues with colors?
i noticed that the frwiki version added some code which i think solves some issues in dark mode, though i am not certain. peace. [[User:קיפודנחש|קיפודנחש (aka kipod)]] ([[User talk:קיפודנחש|talk]]) 05:08, 22 July 2024 (UTC)
:one thing i noticed is that pie charts are embedded in white square in dark mode.
:this comes from an svg file: [[:File:Circle frame.svg]] (it's the square with a round hole, making the pie chart a pie). it defines its color as #FFF, and the circle color as #000. maybe some dark mode wizard can advise - i hope it's possible to use dark-mode aware svg with the same shape. [[User:קיפודנחש|קיפודנחש (aka kipod)]] ([[User talk:קיפודנחש|talk]]) 05:51, 22 July 2024 (UTC)
== Errors ==
There seem to be a huge number of errors on articles caused by this module — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 09:09, 20 December 2024 (UTC)
:I suspect that recent edits at {{tl|PH poverty incidence}} by {{u|PH 0447}} have led to problems such as at [[Aborlan#Economy]] which currently shows "Lua error in Module:Chart at line 301: bad argument #7 to 'max' (number expected, got string)." It is sucking in who-knows-what from Wikidata. [[User:Johnuniq|Johnuniq]] ([[User talk:Johnuniq|talk]]) 09:31, 20 December 2024 (UTC)
::The [https://en.wikipedia.org/w/index.php?title=Template:PH_poverty_incidence&oldid=1249587791 pre-PH 0447 version] is also showing a script error — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 09:35, 20 December 2024 (UTC)
:::But it doesn't at Aborlan. That's not conclusive but is a good clue. [[User:Johnuniq|Johnuniq]] ([[User talk:Johnuniq|talk]]) 09:38, 20 December 2024 (UTC)
::::Okay I have reverted PH 0447's edits to that template. Hopefully they can help to sort this out — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 09:41, 20 December 2024 (UTC)
:::::my $.02: the poverty incidents template sucks stuff directly from wikidata and pass it to chart module without any test/sanitation. Edits on wd which do not adhere to what chart expect can trigger "lua errors" pointing to chart module when the real culprit(s) are either wd or the template. One contrived example is like so: the default delimiter this module expects is colon. The template does not override it, takes labels "as is" from wd and passes them to the module. If such label for some wd item contains a colon, the module will interpret it as a delimiter, which may trigger lua error.
:::::Templates which suck data from wd should sanitize it before sending it to this (or any other) module. When they fail to do so and errors pop up, these errors will point to the module, even though it's really innocent, and the blame should be placed elsewhere.
:::::Peace. [[User:קיפודנחש|קיפודנחש (aka kipod)]] ([[User talk:קיפודנחש|talk]]) 21:00, 21 December 2024 (UTC)
::::::Whoops. Sorry my bad. I was trying to put a new column since we already have a data for 2023. Apologies to all editors if it causes errors. [[User:PH 0447|PH 0447]] ([[User talk:PH 0447|talk]]) 02:46, 24 December 2024 (UTC)
== Category ==
The past two runs of [[Special:WantedCategories]] have featured a redlinked {{cl|Pages using the Chart extension with rendering errors}} that I cannot recall ever having seen there before — so I don't know if it's a genuinely new thing that this module only recently got coded to start generating, or an old thing that just never showed up because this module never saw errors before. (I suspect the former, because the above discussion does remind me of a ''different'' type of redlinked error category that I used to see frequently but haven't recently, but I don't know enough about the module to be absolutely certain of that.)
But either way, it needs to be created if it's a category you want to exist, or killed off so that it never happens at all if you don't want it to exist, because templates and modules shouldn't be autogenerating redlinked categories. So could you either create it or edit the module to prevent it? Thanks. [[User:Bearcat|Bearcat]] ([[User talk:Bearcat|talk]]) 15:53, 4 July 2025 (UTC)
: Created. This actually comes from [[mw:Extension:Chart]], not the module, but you had no good reason to know that. [[User:Pppery|* Pppery *]] [[User talk:Pppery|<sub style="color:#800000">it has begun...</sub>]] 19:11, 7 July 2025 (UTC)
|