Loading and Parsing Corona-virus Data
✓ Published0🌍 Public
This example loads a real-world COVID-19 death time-series CSV from the Johns Hopkins CSSE repository and extracts the death total from its most recent date column. It parses each row by converting the latest column’s string value to a number, then reduces the array to a single sum. The result—the total global deaths—is displayed as text in a React-managed DOM node. The code uses d3.csv for fetching and parsing, plus Array.reduce and Array.map, with React and OpenLayers libraries loaded via CDN.
AI-generated descriptionA program that loads and parses some CSV data: CSS Named Colors.
See also:
MIT Licensed