Fork of Data Table Summary
This example displays a summary of a tabular dataset, showing the row and column counts, the data size in kilobytes, and the first ten rows formatted as JSON. The code fetches COVID-19 case data from NYC Health’s GitHub repository using `d3.csv`, then appends `<pre>` elements to the body via `d3.select`. It relies on `csvFormat` to calculate file size and `JSON.stringify` to pretty-print the sample rows. The terminal-style black background with green text is set in CSS.
AI-generated descriptionThis program prints a summary of a data table.
This data is about population of the most populous countries in 2018.
This data comes from the year 2018 estimate in United Nations: World Population Prospects 2017.
The data is a "file" here, but the recommended approach is to upload the data seprately, as in the video below.