Skip to main content
100%

Fork of Reusable D3 Scatter Plot

✓ Published2🌍 Public
AAmrit Adhikari
Last edited Oct 27, 2025
Created on Oct 27, 2025

This example presents a reusable D3 scatter plot that visualizes tech product data, mapping price, rating, sales volume, and customer reviews. The plot automatically cycles through these attributes every two seconds, updating the x-axis and data points. It uses D3’s `scaleLinear`, `extent`, `axisLeft`, `axisBottom`, and `scaleOrdinal` APIs for axes and color. Implemented as a configurable chart function, it demonstrates a reusable pattern with `.join()` for creating and updating SVG circles and legend items, with data loaded from a CSV file.

AI-generated description
MIT Licensed

Similar vizzes