Data Table Summary
This example reads a CSV file containing the 2017 Fortune 500 company data and displays a concise summary of the dataset. It shows the total number of data rows, the number of columns, and the approximate file size in kilobytes. The first ten rows are then printed as formatted JSON for inspection. The code uses the d3.csv function to parse the data, d3.csvFormat to calculate the data size, and d3.select to append the text elements to the page.
AI-generated descriptionThis program prints a summary of a data table.
This data is about the information of all the companies in Fortune 500 in 2017. The fields include company name, number of employees, previous rank, revenues, revenue change, profits, profit change, assets, and market value.
This data is the limited edition that comes from Fortune Magazine.