Skip to main content
Public

Share visualization

Loading preview…

Cars Scatter Plot

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Cars Scatter Plot

1
YYedrup
Last edited Mar 25, 2020
Created on Mar 11, 2020

This scatter plot visualizes the relationship between horsepower and weight for cars from the auto-mpg dataset, with each circle representing a vehicle. The D3 v5 code uses `scaleLinear`, `extent`, and `axisBottom`/`axisLeft` to map data to SVG coordinates, with gridlines and rotated axis labels. Circles are rendered with `selectAll("circle").data(data).enter().append("circle")`, and the CSV is loaded asynchronously via `csv()`. A title and styled tick marks complete the chart, which uses semi-transparent steelblue circles to show data density.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed