Skip to main content
100%

Scatter Plot of Car Information from JSON file

✓ Published1🌍 Public
Fframptonb
Last edited Feb 14, 2023
Created on Feb 13, 2023

This scatter plot displays the relationship between horsepower and weight for cars from the auto-mpg dataset. Each circle represents a car, with position determined by d3.scaleLinear scales mapping the data values to SVG coordinates. The code loads CSV data via d3.csv, converts numeric fields, and renders the chart with d3.axisBottom and d3.axisLeft axes, including grid lines and rotated axis labels. Circle styling uses the steelblue fill and opacity settings defined in the stylesheet.

AI-generated description

Demonstrates fundamental DOM manipulation using D3.js by producing a scatter plot chart from data within a multi-column CSV file. (based on forked code from Curran Kelleher)

MIT Licensed

Similar vizzes