Skip to main content
100%

reusable Fork of Scatter Plot - ICE7

✓ Published1🌍 Public
Jjanisha30gowda@gmail.com
Last edited Oct 24, 2025
Created on Oct 24, 2025

This example shows a reusable scatter plot of the cars dataset, mapping Horsepower against Weight for 100 cars. It uses a custom `scatterPlot()` function built with D3 v7 that configures linear scales, axes, and circle elements via method chaining. The SVG chart is rendered with `d3.axisLeft`, `d3.axisBottom`, and `d3.extent` to compute domains, while `d3.select().call()` applies the chart to the selection. Data is loaded from an external CSV file and converted to numeric values before plotting.

AI-generated description
MIT Licensed

Similar vizzes