Skip to main content
100%

New York City Leading Causes of Death

✓ Published0🌍 Public
TTaraZhu
Last edited Oct 25, 2017
Created on Oct 25, 2017

This line chart visualizes the top five causes of death in New York City from 2007 to 2014, with each cause represented by a colored line and legend label. The data, sourced from NYC Open Data via a CSV file, shows trends such as declining heart disease deaths and rising “All Other Causes.” The visualization uses d3.csv, d3.nest, d3.scaleTime, and d3.scaleOrdinal to render SVG paths and text. Interaction relies on mouseover and mouseout events, which increase opacity, stroke width, and font size for the hovered cause across both its line and label.

AI-generated description

This dataset is about the leading causes of death by sex and ethnicity in New York City in since 2007, the raw json file can be found here.

More about this theme click this link.

This line chart presents the top 5 causes of death each year.

Chart code forked from d3noob’s block.

Resize inspired by connieGao0819’s Block and Qingquan "Q" Zhao’s Block. Text resize inspired by Curran Kelleher’s Block.

This interactive vis use highlighting as technique, hover on text or line, the selected disease will increase opacity and stroke width.

mit Licensed

Similar vizzes