Giter VIP home page Giter VIP logo

covid-hyogo's Introduction

This project is abandoned. Please visit this page for daily updates.

Tracking the COVID-19 outbreak in Hyogo Prefecture, Japan at https://covid19hyogo.org/

This project consists of a somewhat opinionated set of charts inspired by 17 (or so) responsible live visualizations about the coronavirus. The main ideas are:

  1. The number of confirmed cases should not be shown in red (contracting the virus is not a death sentence).
  2. Absolute numbers should be countered with reference (relative numbers provide more context).
  3. Cumulative cases should be avoided in charts (there are people on track to recovery).
  4. Choropleth maps are avoided if they are necessary at all (there are already maps showing almost all countries in red, but they all seem out of proportion).

All data except otherwise noted are retrieved from the official website of the Hyogo Prefectural Government, particularly:

  1. 新型コロナウイルスに感染した患者の発生状況
  2. 新型コロナウイルスに感染した患者の状況

Telegram bot

A Telegram bot is set up to monitor the patient page and PCR summary page at 10 minute intervals. If you want to get notified when the page updates, please add @covid19hyogo_bot.

Help translate COVID-19 in Hyogo

Are you a translator? Please help translate the page! To translate, visit the localization project at Transifex.com and click Help Translate "Covid-19 in Hyogo". A free Transifex account is needed.

This will be pro bono work, but let me buy you a beer if you locate in Hyogo. :)

Usage

This project uses node and npm. Go check them out if you don't have them locally installed.

To run a local development server at localhost:8080:

yarn serve

To build for production:

yarn build

Lint and fix your code before building:

yarn format

Retrieve the latest data:

yarn scrape

Contributing

Comments and contributions welcome! Please submit an issue or send a pull request directly.

Built with

  • Vue.js - The Progressive JavaScript Framework
  • Chart.js - Simple yet flexible JavaScript charting for designers & developers
  • Leaflet - An open-source JavaScript library for mobile-friendly interactive maps
  • openpyxl - A Python library to read/write Excel 2010 xlsx/xlsm/xltx/xltm files.
  • gspread - A simple interface for working with Google Sheets.
  • pandas - An open source data analysis and manipulation tool for Python.
  • And many great open source software.

License

This project is licensed under the MIT License

covid-hyogo's People

Contributors

akiya64 avatar dependabot[bot] avatar hktang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

covid-hyogo's Issues

Compare chart - "capacity" between patient

I think hospital beds number is very important information, but one of most sensitive issue.

Realiy useful?

This project should be to help prevent infection for citizens, not to fuel the crisis.
Is this chart that comparison hospital beds with patient useful for preventing community-acquired infections?

Difficulty of ”Capacity" definition

What is "Capacity"?

  1. Hospital beds prepared for COVID-19
  2. Hotels for non-severe patient, Hyogo.pref has yet decided use hotels.

There will also be waiting at home for non-severe.
And may Accept patients across prefectures.

Difficulty of Infomation resouce

The number of beds is gradually increased, but no daily announced.
And annouce by PDF, it is difficult to crawl.
Example, nothing about beds in this page, need to open PDF and written by japanese.
https://web.pref.hyogo.lg.jp/kk03/200129.html

Daily discharges is not announced, only discharged total.

Language - Hiragana mode

I think Hiragana "ひらがな" mode is usefull.
It would be helpfull for foreigners who unfamiliar with Kanji and usefull for japanese children.
I will implement within several days.

私はひらがなの表示モードが役立つと思います。
漢字に不慣れな外国人の助けになる。日本人の子供も使いやすい。
数日中に実装する予定です。

Check if the daily male/female/total for the previous day is correct

This section of the updater script is buggy because sometimes cases are backdated (i.e. added in the early morning of Day(n) for Day(n-1)). In that case, the script should check the previous day after it inserts a blank row for the current day.

# Todo: sometimes backdated cases do happen.
# Need to check one more row (2.A3 and D.A4)
refWorksheet = sheet.worksheet("D")
pivotLastDateString = refWorksheet.get("A3").first()
if lastDateString == pivotLastDateString:
if refWorksheet.acell("B3").value == '':
female = 0
else:
female = refWorksheet.acell("B3").value
if refWorksheet.acell("C3").value == '':
male = 0
else:
male = refWorksheet.acell("C3").value
if refWorksheet.acell("D3").value == '':
total = 0
else:
total = refWorksheet.acell("D3").value
worksheet.update("B2", female, raw=False)
worksheet.update("C2", male, raw=False)
worksheet.update("D2", total, raw=False)
print("Summary sheet updated.")

Disclaimer for the map

For simplicity/convenience, cases in the "administrative jurisdictions" are merged into the city itself. For example, 伊丹健康福祉事務所管内 is considered 伊丹 in the map.

A disclaimer should be added to the page to indicate how this is handled.

Calculate map circle radius on zoom in/out

Currently, the radius of circle markers on the map is a fixed value based on device type (mobile or others). It does not respond to zooming events and is therefore problematic especially when the map is zoomed out.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.