Data Table Summary
This example summarizes a CSV dataset of 2018 population estimates for the most populous countries from the UN World Population Prospects. It displays the total row count, column count, and file size in kilobytes, followed by the first ten rows formatted as JSON. The code uses d3.csv to load the data, d3.csvFormat to calculate size, and d3.select to append the results to the body. The output appears in a monospaced preformatted element with a terminal-like green-on-black style.
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.