Talk:Statistics of the COVID-19 pandemic in Portugal

Data update
Since last year I've been using a python script to populate/update the data from the DGS website. For anyone who would like to do the same, feel free to use the code that's in this github repository. Since the formatting is also automatically generated, any change to the page layout could be overwritten by the script. I do my best to always check if there were any changes before updating, but sometimes it can go unnoticed. So if you would like to modify the format, you can suggested it here and I'll make the modifications in the code. -- Wvictor07 (talk) 19:11, 20 August 2021 (UTC)

Date formatting on new cases/deaths
Do you see any alternative for the date format on new cases/deaths charts? I do think these types of graphs can be better understood if they are bar charts. However that brings the clutter in the x axis problem again. -- Wvictor07 (talk) 07:21, 13 May 2020 (UTC)
 * i am yet to think about a solution for that problem. My knowledge of wiki templates is kind of limited. The new cases/deaths by day chart should be a box shard cuz they are isolated values, independent of the value of the previous days. The graphs template, however, does not group dates like it does when its a line. Bummer. Maybe we can use scatter charts ? --Hagnat (talk) 11:34, 13 May 2020 (UTC)
 * so i was checking our options, and none of them would produce a graph with our desired look, imho. I checked the Graph:Chart documentation, and then i noticed that there is going to be a revamp on wikipedia's graph engine. They will move the rendering to client-side, which will (perhaps) allow us to fix this issue. --Hagnat (talk) 18:49, 13 May 2020 (UTC)
 * Great, I didn't know about that. Last time I was messing around with this I chose to use scatter graphs for the daily increase plots. The thing is they are not as good as the bar charts though. In the mean time I'll try to update my python script to generate most of the graphs and tables of this page. --Wvictor07 (talk) 13:33, 14 May 2020 (UTC)
 * After finishing updating the script I'll try to generate the new cases/graphs directly in python and see how satisfying the results are. If the template is not very different from wikipedia's (and I don't think it is) and if you agree that could be a solution. --Wvictor07 (talk) 13:33, 14 May 2020 (UTC)
 * cool. Looking forward it. --Hagnat (talk) 11:54, 14 May 2020 (UTC)
 * I changed the format to an area graph, but that's probably not the best way to visualize it (you can change it if you'd like). These types of graphs should give one a sense of the cases/deaths curve, and to know precise numbers one would usually go to the medical covid-19 timeline chart in the main page. But still, it's a good thing to keep looking for the best way to represent these data. --Wvictor07 (talk)
 * not a huge fan, but maybe that's a compromise we must have, due the large amount of data in there. --Hagnat (talk) 17:58, 14 May 2020 (UTC)

the key to update the Growth of confirmed * charts is that you cannot have the same value twice on X, so skip every date that has no new case/death. --Hagnat (talk) 12:59, 15 May 2020 (UTC)
 * Also, another editor increased the size of the brazil graphs from  to  . I increased my generator script to 720, and will see how it looks like today once the minister of health releases new data --Hagnat (talk) 13:02, 15 May 2020 (UTC)
 * I updated the script to have 720px in the new cases/deaths graphs using bar charts (again haha) and 650px for the rest. Right now, perhaps it's better to leave it like this for the daily cases and eventually we can come up with something. I'll also update the script to deal with the growth of confirmed cases, but probably not today - if you want to update it go for it.

Cases and deaths per week
Propose using cases/deaths per week rather than per day as it shows trends better and solves width problem.Ânes-pur-sàng wiki 09:16, 16 August 2020 (UTC)


 * I don't think this format would yield more information compared to the previous one. Also, a solution to the width problem was to use a horizontal overflow (as it was before) at least for now - it is the method being used in some other pages (either this method adopted in pages of countries like France and Spain or changing the plot type as a line chart used in the pages of Brazil, Italy and other countries). Since the DGS report format was changed (again), no more data on the cases/deaths by age and gender can be obtained through the PDF files, which will force us to use the data until August 16th. Since I'm using a script that does all the data gathering, I'll leave the daily cases/deaths by week for further information (that would have to be manually updated for now though), however I would propose restoring the daily graphs to the excerpt section so that it can be displayed at the main page. I'll make these changes to the script as soon as possible. -- Wvictor07 (talk) 13:34, 22 August 2020 (UTC)

Orphaned references in Statistics of the COVID-19 pandemic in Portugal
I check pages listed in Category:Pages with incorrect ref formatting to try to fix reference errors. One of the things I do is look for content for orphaned references in wikilinked articles. I have found content for some of Statistics of the COVID-19 pandemic in Portugal's orphans, the problem is that I found more than one version. I can't determine which (if any) is correct for this article, so I am asking for a sentient editor to look it over and copy the correct ref content into this article.

Reference named "auto1": From List of events affected by the COVID-19 pandemic:  From COVID-19 vaccination in Canada:  From Li Wenliang:  From Timeline of the COVID-19 pandemic in Malta:  From COVID-19 pandemic in Pakistan:  From COVID-19 pandemic in Virginia: https://www.vdh.virginia.gov/coronavirus/coronavirus/covid-19-in-virginia-cases/ From COVID-19 recession:  From Dabie Mountain Regional Medical Centre: </li> <li>From Economic impact of the COVID-19 pandemic: </li> <li>From Atlantic Bubble: </li> <li>From COVID-19 pandemic in Jordan: </li> <li>From Timeline of the COVID-19 pandemic in Vietnam: </li> <li>From Timeline of the COVID-19 pandemic in the United Kingdom (January–June 2021): </li> <li>From COVID-19 pandemic in the Cayman Islands: </li> <li>From Timeline of the COVID-19 pandemic in Scotland (2021): </li> <li>From COVID-19 pandemic in Latvia: </li> <li>From List of unproven methods against COVID-19: </li> <li>From COVID-19 pandemic in Ukraine: </li> <li>From Timeline of the COVID-19 pandemic in England (July–December 2020): </li> <li>From COVID-19 vaccination in Australia: ( The data on this site changes daily.)</li> <li>From Timeline of the COVID-19 pandemic in the United Kingdom (January–June 2020): </li> <li>From European Union response to the COVID-19 pandemic: </li> <li>From Timeline of the COVID-19 pandemic in Ontario: </li> <li>From COVID-19 pandemic in Oceania: </li> <li>From COVID-19 pandemic in Canada: https://www.cbc.ca/news/politics/canada-approves-moderna-vaccine-1.5852848</li> <li>From COVID-19 pandemic in Russia: </li> <li>From Timeline of the COVID-19 pandemic in Northern Ireland (2021): </li> <li>From Timeline of the COVID-19 pandemic in Canada: </li> <li>From Timeline of the COVID-19 pandemic in Spain: </li> <li>From List of COVID-19 vaccine authorizations: </li> <li>From COVID-19 pandemic in Brazil: </li> <li>From Timeline of the COVID-19 pandemic in Ghana (March–July 2020): </li> <li>From COVID-19 pandemic in Ontario: </li> <li>From COVID-19 pandemic in New Mexico: </li> <li>From COVID-19 pandemic in Iraq: </li> <li>From COVID-19 pandemic in the Czech Republic: </li> <li>From Gendered impact of the COVID-19 pandemic: </li> <li>From COVID-19 pandemic in Toronto: </li> <li>From Impact of the COVID-19 pandemic on association football: </li> <li>From COVID-19 pandemic in Vietnam: </li> <li>From Timeline of the COVID-19 pandemic in January 2020: </li> <li>From Timeline of the COVID-19 pandemic in Wales (2020): </li> <li>From COVID-19 pandemic in France: </li> <li>From Federal aid during the COVID-19 pandemic in Canada: </li> <li>From COVID-19 pandemic in Bosnia and Herzegovina: </li> <li>From Responses to the COVID-19 pandemic in February 2020: </li> <li>From COVID-19 pandemic in the United Arab Emirates: </li> <li>From COVID-19 vaccination in India: </li> <li>From Operation Gloria: </li> <li>From Timeline of the COVID-19 pandemic in Wales (2021): </li> <li>From COVID-19 pandemic in Sikkim: </li> <li>From White House COVID-19 outbreak: </li> <li>From COVID-19 pandemic in Trinidad and Tobago: </li> <li>From COVID-19 vaccination in Vietnam: </li> <li>From Huoshenshan Hospital: </li> <li>From Impact of the COVID-19 pandemic on sports: </li> <li>From COVID-19 pandemic on cruise ships: </li> <li>From Timeline of the COVID-19 pandemic in the United Kingdom (July–December 2021): </li> <li>From Evacuations related to the COVID-19 pandemic: </li> <li>From COVID-19 pandemic in New York City: </li> <li>From Covid Watch: </li> <li>From Timeline of the COVID-19 pandemic in Scotland (2020): </li> <li>From Timeline of the COVID-19 pandemic in Pakistan: </li> <li>From COVID-19 pandemic in Northern Ireland: </li> <li>From COVID-19 pandemic in Afghanistan: </li> </ul>

I apologize if any of the above are effectively identical; I am just a simple computer program, so I can't determine whether minor differences are significant or not. AnomieBOT ⚡ 20:51, 9 September 2021 (UTC)