Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Scatter Plot with d3

Public visualization

Viewing a saved revision (read-only)

3620cec92a9d41e687b477d9b53c7bb5

Cars Scatter Plot with d3

0 stars2🌍 Public
MMuhammad Jarir Kanji
Last edited Dec 15, 2020
Created on Dec 15, 2020

This example visualizes the relationship between vehicle weight and horsepower using data from the auto-mpg dataset. The scatter plot displays individual cars as semi-transparent red circles, with weight on the x-axis and horsepower on the y-axis. The visualization is built using D3 v6, employing `scaleLinear` for both axes, `extent` to set domains, and `axisLeft` and `axisBottom` with gridlines. It loads CSV data via `csv()` and renders to SVG, including custom axis labels and a chart title.

AI-generated description