Airplane Crashes and Fatalities Since 1908
This example displays the raw contents of an airplane crashes and fatalities dataset, loaded from a CSV file and rendered as a JSON-formatted text preview. The visualization initially fetches the data using the Fetch API, parses it with `d3.csvParse`, and converts numeric fields to numbers. The `viz` function manages the loading state, showing a "LOADING" placeholder until the data arrives, then updates the display via a `setState` callback. The interface uses D3 v7 for DOM selection and rendering, presenting the parsed records in a simple `<pre>` element.
AI-generated descriptionThis dataset contains a list of notable airplane crashes and fatalities since 1908. This dataset originated from https://www.kaggle.com/datasets/thedevastator/airplane-crashes-and-fatalities, and slightly modifided with the removal of a few columns to condense the dataset a little bit.
Link to Gist here: https://gist.github.com/stchiang/212b69422ca5bcd9bc204b24e59f85dd