Skip to main content
100%

Fork of React & D3 Starter

✓ Published0🌍 Public
Mmynedisanjana@gmail.com
Last edited Mar 28, 2026
Created on Mar 28, 2026
Forked from React & D3 Starter

This example presents a reusable React-based scatter plot that visualizes the relationship between song duration and popularity from a CSV dataset. The visualization employs D3.js v7 for data processing, linear scaling, and axis generation, while React 19 manages the component structure. The code uses `d3.csv()` to load data, `d3.scaleLinear()` for coordinate mapping, and `d3.axisBottom()` and `d3.axisLeft()` to render axes. All elements are drawn as SVG circles with a steelblue fill, positioned using `cx` and `cy` attributes derived from the scaled data values.

AI-generated description
MIT Licensed

Similar vizzes