184:
153:
233:
215:
243:
577:
21:
678:
from sheer volume of data. There are other ways to reduce PEIS (I just did so for a couple articles) but as more data keeps getting added, the problem will ultimately have to be addressed here (or by another template), otherwise editors may have to resort to manually replacing their daily data with
368:
Selection by last 15 days and another selector (selection of same dates by two selectors) leads to hiding these lines. As I understood it, this should be targeted at some time. Is there some work in progress? Otherwise I might take a look myself. If so, a few hints where to find implementation (I
411:
and consequently this module. Unfortunately, creating extensive test cases became quite exhausting so I've paused for a while now. Fortunately all this stuff is not necessary to fix the issue you mentioned. That linked
Phabricator task has the latest development. After writing it, I think I even
347:
already does it. This template/module is intended to be a hybrid between a bar chart and a table. There are some planned future upgrades which will improve the visualization though, like being able to toggle between cumulative and new counts.
132:
416:
after I made my final changes. If our attempt fails there, I think it would be good if we try to implement these toggles here at
Knowledge (XXG) to test and make their use widespread. This would be done via a
605:
648:
679:
weekly or monthly aggregates. To avoid having to discard existing fine-grained daily data, perhaps this template could provide an option to aggregate data for display by month or epidemiological week,
694:
An added benefit of such approach is to allow a single country's {{COVID-19 pandemic data}} template to support displaying an aggregated version of the chart on the main "COVID-19 in <Country: -->
697:
452:
589:
550:
s be 0 or, even better, enforce that data monotonically increases. However, when inputting daily new data (not cumulative) is supported, this condition/requirement will need to be dropped.
36:
73:
701:
412:
thought that a third toggle class would be ideal, but I can't quite remember what I wanted right now. Unfortunately the task is pretty dead. I thought about contacting
144:
108:
400:
140:
136:
719:
724:
114:
729:
262:
584:
Hello. The numbers have reached over tens of millions for the German chart and therefore they appear very sticky to the bracketed numbers.
256:
220:
54:
396:
103:
320:
195:
422:
94:
448:
local divisor = (total + total + total + total + total) / (args.barwidth - 5) --should be -3 if borders didn't go inward
626:
58:
27:
332:
316:
152:
127:
163:
695:" articles while full daily numbers are shown on another page such as "COVID-19 statistics for <Country: -->
656:
555:
496:
430:
353:
201:
374:
491:
which is wrong as these numbers are cumulative). The proper fix would be to raise an error in such cases.
315:
Any chance this can be changed to a line graph, like Google does it? Seems better to visualise this data.
487:
It's not division by 0, it's the numerator that can be 0 if data is input incorrectly (the last date has
84:
636:
99:
341:
652:
551:
528:
args.divisor is clearly a denominator (and in the example quoted is zero); hence a division by zero
511:
492:
426:
349:
310:
404:
541:
482:
466:
386:
370:
168:
80:
668:
632:
470:
425:
has the required 'unmaker' function to implement these new toggles here at
Knowledge (XXG).
165:
705:
660:
640:
559:
500:
474:
434:
378:
357:
324:
248:
546:
I get what you mean now, but the solution is still the same: not letting the sum of the
167:
408:
713:
691:
would indicate the number of most recent month/week entries initially displayed.
306:
457:
and later on this 'divisor' (as the name implies) is used in _customBarStacked
238:
675:
418:
20:
232:
214:
413:
260:. Please visit the project page for details or ask questions at
177:
169:
49:
15:
460:
Is a 'nan' or 'inf' appropriate? A possible change is to add
608:
as a comparison. Notice the breathing room between numbers:
453:
Template:COVID-19_pandemic_data/Kiribati_medical_cases_chart
614:
609:
598:
593:
597:
With a monospaced typeface appear on top of each other:
687:, with lastest entry being partial month/week-to-date.
674:
Articles with COVID-19 cases charts are starting to
399:one. However, before that, I wanted to create some
516:I am confused. A division takes place on line 225
364:Dual selection leads to hiding of selected dates
613:With a monospaced typeface, still well spaced:
194:does not require a rating on Knowledge (XXG)'s
8:
649:Germany medical cases chart#Sticking numbers
209:
263:Knowledge (XXG) talk:WikiProject Medicine
629:, but that failed to make a difference.
698:2406:3003:2077:1E60:D59D:E6EC:AEA9:4652
211:
369:think somewhere in js) might help. --
463:if divisor == 0 then divisor = 1 end
254:This template is within the scope of
183:
181:
7:
272:Knowledge (XXG):WikiProject Medicine
667:Aggregation options to help manage
200:It is of interest to the following
57:for discussing improvements to the
31:
26:This template was considered for
14:
79:New to Knowledge (XXG)? Welcome!
720:Template-Class medicine articles
575:
241:
231:
213:
182:
151:
74:Click here to start a new topic.
19:
725:NA-importance medicine articles
392:
730:All WikiProject Medicine pages
522:barargs = args / args.divisor
391:I halted my work on #7 of the
1:
661:15:13, 13 February 2022 (UTC)
641:11:02, 11 February 2022 (UTC)
560:17:10, 13 December 2021 (UTC)
501:20:04, 11 December 2021 (UTC)
475:11:09, 11 December 2021 (UTC)
395:to rewrite this module as an
275:Template:WikiProject Medicine
71:Put new text under old text.
451:can produce the value 0. eg
435:03:43, 18 August 2021 (UTC)
379:17:52, 16 August 2021 (UTC)
746:
573:
706:19:51, 17 June 2022 (UTC)
621:I tried using the phrase
358:16:57, 17 July 2021 (UTC)
325:11:06, 17 July 2021 (UTC)
226:
208:
109:Be welcoming to newcomers
104:avoid personal attacks
333:ProcrastinatingReader
317:ProcrastinatingReader
145:Auto-archiving period
625:as indicated in the
257:WikiProject Medicine
34:. The result of the
59:Medical cases chart
685:|aggregate=epiweek
676:exceed PEIS limits
196:content assessment
115:dispute resolution
76:
643:
294:
293:
290:
289:
286:
285:
278:medicine articles
176:
175:
95:Assume good faith
72:
48:
47:
737:
690:
686:
682:
681:|aggregate=month
630:
624:
588:The very sticky
579:
578:
570:Sticking numbers
549:
545:
515:
490:
486:
441:Division by zero
390:
346:
340:
336:
314:
280:
279:
276:
273:
270:
251:
246:
245:
244:
235:
228:
227:
217:
210:
187:
186:
185:
178:
170:
156:
155:
146:
50:
33:
23:
16:
745:
744:
740:
739:
738:
736:
735:
734:
710:
709:
688:
684:
680:
672:
622:
582:
581:
576:
572:
547:
539:
523:
509:
488:
480:
464:
449:
443:
401:basic Lua types
397:object-oriented
384:
366:
344:
338:
330:
304:
302:
277:
274:
271:
268:
267:
249:Medicine portal
247:
242:
240:
172:
171:
166:
143:
121:
120:
90:
12:
11:
5:
743:
741:
733:
732:
727:
722:
712:
711:
671:
665:
664:
663:
653:Alexiscoutinho
619:
618:
617:
616:
606:American chart
602:
601:
600:
574:
571:
568:
567:
566:
565:
564:
563:
562:
552:Alexiscoutinho
532:
531:
530:
529:
521:
520:
519:
518:
517:
512:Alexiscoutinho
504:
503:
493:Alexiscoutinho
462:
447:
442:
439:
438:
437:
427:Alexiscoutinho
409:Module:Bar box
365:
362:
361:
360:
350:Alexiscoutinho
311:Alexiscoutinho
301:
298:
296:
292:
291:
288:
287:
284:
283:
281:
253:
252:
236:
224:
223:
218:
206:
205:
199:
188:
174:
173:
164:
162:
161:
158:
157:
123:
122:
119:
118:
111:
106:
97:
91:
89:
88:
77:
68:
67:
64:
63:
62:
46:
45:
24:
13:
10:
9:
6:
4:
3:
2:
742:
731:
728:
726:
723:
721:
718:
717:
715:
708:
707:
703:
699:
692:
677:
670:
666:
662:
658:
654:
650:
646:
645:
644:
642:
638:
634:
628:
615:
612:
611:
610:
607:
603:
599:
596:
595:
594:
591:
587:
586:
585:
569:
561:
557:
553:
543:
538:
537:
536:
535:
534:
533:
527:
526:
525:
524:
513:
508:
507:
506:
505:
502:
498:
494:
484:
479:
478:
477:
476:
472:
468:
461:
458:
455:
454:
446:
440:
436:
432:
428:
424:
420:
415:
410:
406:
403:and a proper
402:
398:
394:
388:
387:Kohraa Mondel
383:
382:
381:
380:
376:
372:
371:Kohraa Mondel
363:
359:
355:
351:
343:
334:
329:
328:
327:
326:
322:
318:
312:
308:
299:
297:
282:
265:
264:
259:
258:
250:
239:
237:
234:
230:
229:
225:
222:
219:
216:
212:
207:
203:
197:
193:
189:
180:
179:
160:
159:
154:
150:
142:
138:
134:
131:
129:
125:
124:
116:
112:
110:
107:
105:
101:
98:
96:
93:
92:
86:
82:
81:Learn to edit
78:
75:
70:
69:
66:
65:
60:
56:
52:
51:
43:
39:
38:
29:
25:
22:
18:
17:
693:
673:
620:
590:German chart
583:
465:
459:
456:
450:
444:
367:
303:
295:
261:
255:
202:WikiProjects
191:
148:
126:
53:This is the
42:no consensus
41:
35:
633:Mahmudmasri
592:right now:
405:Table class
393:#To Do list
342:Graph:Chart
32:4 June 2021
714:Categories
623:|numwidth=
423:JS sandbox
300:Chart type
37:discussion
445:the line
117:if needed
100:Be polite
61:template.
55:talk page
689:duration
580:Resolved
414:matmarex
269:Medicine
221:Medicine
192:template
149:180 days
128:Archives
85:get help
28:deletion
669:WP:PEIS
419:snippet
542:Desb42
489:;0;0;0
483:Desb42
467:Desb42
307:Ahecht
198:scale.
627:usage
548:total
421:. My
190:This
133:Index
113:Seek
40:was "
702:talk
696:" ——
657:talk
647:See
637:talk
604:The
556:talk
497:talk
471:talk
431:talk
407:for
375:talk
354:talk
337:No.
321:talk
309:and
102:and
683:or
30:on
716::
704:)
659:)
651:.
639:)
631:--
558:)
499:)
473:)
433:)
377:)
356:)
345:}}
339:{{
323:)
147::
139:,
135:,
83:;
44:".
700:(
655:(
635:(
554:(
544::
540:@
514::
510:@
495:(
485::
481:@
469:(
429:(
389::
385:@
373:(
352:(
335::
331:@
319:(
313::
305:@
266:.
204::
141:2
137:1
130::
87:.
Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.