Project csv
✓ Published0🌍 Public
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 descriptionMIT Licensed