Skip to main content
100%

Fork of Scatter Plot - ICE 6

✓ Published0🌍 Public
NNandini Maddula
Last edited Mar 20, 2024
Created on Mar 20, 2024

This example visualizes birth-rate trends across U.S. states by plotting each state as a dot, comparing values from 2017 on the x-axis against 2018 on the y-axis. The scatter plot uses a fixed square scale domain (250,000 to 600,000) to emphasize changes between the two years, with green circles outlined in black. The code loads a CSV dataset via `d3.csv`, parses numeric fields, and renders the chart using D3 v6 with SVG elements, axes via `d3.axisBottom` and `d3.axisLeft`, and circle elements bound to the data. A mouseover handler logs the state and its two-year values to the console, but no interactive tooltip is displayed.

AI-generated description
MIT Licensed

Similar vizzes