Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Scatter Plot with Import Maps

Public visualization

Viewing a saved revision (read-only)

1662b5315c9d4ae99cf63a0444e5c1f1

Scatter Plot with Import Maps

0 stars1🌍 Public
CCurran Kelleher
Last edited Oct 31, 2021
Created on Oct 26, 2021
Forked from Cars Scatter Plot

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 description

Scatter plot with D3.

Makes use of import maps