Kumar Danam Reusable scatter plot
✓ Published0🌍 Public
KKumar Danam
Last edited Oct 27, 2025
Created on Oct 27, 2025
This example demonstrates a reusable scatter plot of car data from a CSV file, showing horsepower and miles per gallon. It renders SVG circles with axes and labels, with the visualization automatically alternating the x- and y-axis assignments every two seconds. The code uses d3.csv for data loading, d3.scaleLinear for scaling, d3.axisBottom and d3.axisLeft for axes, and the scatterPlot function pattern for reusability in D3 v6.
AI-generated descriptionMIT Licensed