Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Scatter Plot with D3

Public visualization

Viewing a saved revision (read-only)

e7fdb27272b845499c384ebe0967eec6

Scatter Plot with D3

0 stars0🌍 Public
EEunice Tu
Last edited Feb 21, 2024
Created on Feb 17, 2024

This scatter plot visualizes the correlation between city miles per gallon and engine horsepower for a dataset of cars from the CORGIS Dataset Project. The visualization reveals a moderate negative linear relationship between the two variables, shown as a dense cluster of points descending from the upper-left to lower-right. Built with D3 v7, the example uses `d3.scaleLinear` for both axes, `d3.axisBottom` and `d3.axisLeft` for tick marks, and renders circles as SVG elements. The code loads data via `d3.csv` and converts string values to numbers before plotting.

AI-generated description

Billionaires Dataset From the CORGIS Dataset Project Being eliminated to only 2 columns: 'inherited_type' and 'average_worth'