Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Project csv

Public visualization

Viewing a saved revision (read-only)

531c8fe5fd74463b85e619b7143984b6

Project csv

0 stars0🌍 Public
Eedxiao97
Last edited Dec 1, 2019
Created on Dec 1, 2019
Forked from Auto MPG Summary

This example visualizes the relationship between fuel efficiency (mpg) and vehicle weight from an auto-mpg dataset, plotting each car as a semi-transparent red circle. The scatter plot uses linear scales for both axes, with gridlines extending across the plotting area for readability. The code reads CSV data via d3.csv, applies d3.scaleLinear with .nice() domain normalization, and renders axes using d3.axisLeft and d3.axisBottom. Styling is applied through CSS classes for ticks, labels, and the title, with a large margin layout to accommodate the axis annotations.

AI-generated description