🌍 Public
Viewing a saved revision (read-only)
1662b5315c9d4ae99cf63a0444e5c1f1
Scatter Plot with Import Maps
This scatter plot visualizes the relationship between horsepower and weight for automobiles, with each circle representing a vehicle from the auto-mpg dataset. The code uses D3 modules loaded via import maps, including d3-selection, d3-fetch, d3-scale, d3-array, and d3-axis, to fetch CSV data, create linear scales, and render SVG circles and axes. The visualization fills the browser window, with axes labeled through d3-axis and data mapped from the CSV file fetched from a remote URL.
AI-generated descriptionScatter plot with D3.
Makes use of import maps