DATA VISUALIZATION
This example loads a CSV of country populations from a GitHub gist and displays a plain-text summary of the dataset in the browser. Using `d3.csv`, it fetches the data and then computes the file size in kilobytes, row count, and column count, which are formatted with `d3.csvFormat` and written to a `<pre>` element styled with black background and green text. The data originates from the 2018 United Nations World Population Prospects estimate, though the live code references a different gist URL than the documented file.
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.