Revenue and Profit of Fortune 500 Companies (2000 - 2009)
This example visualizes the revenue and profit of Fortune 500 companies from 2000 to 2009, using data from a Kaggle dataset. It displays the raw data as a JSON-formatted table while loading the CSV file with `d3.csvParse` and managing state updates through a custom render cycle. The visualization fetches `data.csv`, converts the Year and Rank columns to numbers, and renders the parsed data in a `<pre>` element using `d3.select` and `data.join`. The D3 v7 library powers the data loading and DOM manipulation.
AI-generated descriptionThe dataset contains revenue and profit of Fortune 500 companies in the years 2000 - 2009. This dataset originated from https://www.kaggle.com/datasets/yashsrivastava51213/revenue-and-profit-of-fortune-500-companies and was condensed to the 2000 - 2009 time span (the original dataset includes data going all the way back to 1955!)
Link to Gist: https://gist.github.com/stchiang/36108e143c09a7fc393825ffcb0b29e3