Data Table Summary
✓ Published0🌍 Public
This example summarizes a CSV data table of self-reported life satisfaction by country and year from the World Happiness Report 2017. It displays the total row count, column count, and file size, followed by the first 10 rows of data as formatted JSON. The page uses d3.csv to load the dataset, d3.csvFormat to measure its size, and d3.select to append the results to the DOM as preformatted text.
AI-generated descriptionThis program prints a summary of a data table.
This data is about self-reported life satisfaction over the world from 2008 to 2016
This data comes from the World Happiness Report 2017 in Our World in Data: Happiness and Life Satisfaction.
The data is a "file" here, but the recommended approach is to upload the data seprately, as in the video below.
MIT Licensed