EIU-GIScience-Center / covid19map

Animated maps of the COVID-19 epidemic, in html and javascript with D3
MIT License
0 stars 3 forks source link

Sarah #44

Closed cardanarbo closed 4 years ago

cardanarbo commented 4 years ago

Added averaging functions to each theme, to average rates across multiple geographic features on a given date, and cleaned up the code (as documented in commits)

geobarry commented 4 years ago
  1. Rename function to "averageRatio"
  2. Fix averageRatio function to return null or NaN if denominator is zero
  3. In template theme (and possibly other themes), use your averageRatio function where possible