Skip to main content
100%

D3 Scatter Plot Exercise

✓ Published0🌍 Public
Ttverdone
Last edited Aug 23, 2023
Created on Aug 23, 2023
Forked from D3 Scatter Plot

This scatter plot exercise displays the number of deaths from wildfires per year, using vertical bars to represent each data point. The chart, which reads from the `disasters.csv` dataset, maps the year on the x-axis and death count on the y-axis. The code builds an SVG visualization using D3 v7, employing `d3.scaleLinear` for both axes, `d3.axisBottom` and `d3.axisLeft` for tick labels, and `d3.csv` for data parsing. The bars are rendered as `rect` elements with a fixed width.

AI-generated description

The data set I chose doesn't make sense to be displayed in a scatter plot so I made it into a bar chart instead. The outliers make it look ugly.

The data in this set represents the total deaths related to different categories of national disasters since the early 1900s.

MIT Licensed

Similar vizzes