USA Leading Causes of Death Dataset
This example displays the first row of the NCHS Leading Causes of Death dataset as a JSON object in a large monospace font. The code imports the CSV data, converts numeric fields to numbers, and then renders the parsed record using a template literal in an HTML `<pre>` tag. It uses the `data` export and a `main` function to populate the container, though no charting library is employed. The visualization provides a raw, static view of the dataset structure rather than an interactive graphic.
AI-generated description`The NCHS - Leading Causes of Death: United States.
This data contains the leading causes of death in the US by year, both with the raw number of deaths and adjusted by age.
Note: The CSV data was slightly modified (adding "_"s to field names instead of spaces/dashes) to make parsing easier.
Tasks:
- I want to understand how the leading death causes vary by state
- I want to understand how the age-adjusted death rate correlates with total deaths geographically
- I want to see how the leading death cause has changed over time
- I want to see how the age-adjusted death rate correlates to deaths with different death causes
- I want to see how the total number of deaths across all regions has changed over time