This project provides a simple visualization for the coronavirus pandemic. The idea is to allow the user to see up-to-date stats aggregated by selected regions or counties within a state, so the user can stay informed about the corona situation in the context that's most relevant to their daily lives.
This project was bootstrapped with Create React App. To launch the project in development mode, run:
yarn run start
See this commit for an example.
Adding a new state requires some manual work:
- Add a new state entry to src/States.js
- Download the state's county map from Wikimedia Commons (example)
- Convert the county map into a React component:
npx @svgr/cli maps/[StateCountyMap].svg > src/maps/[State]Map.js
- Edit the generated component (YMMV)
- Rename the component so its name is consistent with other map components
- Prefix state IDs with the state's postal code (e.g.,
id="Atlantic"
->id="NJ_Atlantic"
) - Add missing state IDs (if any is missing)
- Set the SVG's default fill color to
#CCC
- Set the SVG's default stroke color to
#FFF
- Set the SVG's viewBox so it's fully visible on the page
- Edit the code to let the component reflect selection status for its counties (example)
GPL licensed. See the LICENSE file for details.