Data Table Summary
This example displays a plain-text summary of a CSV data table, revealing the total row and column counts, file size in kilobytes, and a formatted JSON preview of the first 10 rows. The data comes from the 2018 United Nations World Population Prospects and lists populous countries with their populations. The code uses `d3.csv` to load the data, `d3.csvFormat` to calculate its byte size, and `d3.select` to append the output to the page. The rendering is minimal, with a monochrome green-on-black styling defined 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.