Data Table Summary
This example summarizes a CSV of 2018 population estimates from the United Nations World Population Prospects. It displays the number of rows, columns, and file size in kilobytes, followed by the first ten rows as formatted JSON. The code uses `d3.csv` to load the data, `d3.csvFormat` to calculate its byte size, and D3 selections to append `<pre>` elements to the page body. The data is shown in a monospaced, green-on-black terminal 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.