Data Table Summary
This example displays a text-based summary of a dataset about happiness percentages from the World Happiness Report 2017, showing row count, column count, file size in kilobytes, and the first ten rows as formatted JSON. It uses D3 v5’s `csv` and `csvFormat` functions to load and measure the data, then appends `<pre>` elements to the page body with `select` and `append`. The interface applies a retro terminal aesthetic with a black background and green monospace text via CSS.
AI-generated descriptionThis program prints a summary of a data table.
This data is about share of people who say they are 'very happy' or 'rather happy'.
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.