Skip to main content
100%

Cars Scatter Plot

✓ Published0🌍 Public
JJunhao CHen
Last edited Apr 11, 2020
Created on Apr 11, 2020
Forked from Cars Scatter Plot

This scatter plot visualizes the relationship between horsepower and weight for 398 cars from the UCI Machine Learning Repository’s Auto MPG data set. The visualization uses d3.v5 with SVG rendering, employing `scaleLinear`, `axisBottom`, and `axisLeft` to construct axes with tick marks, while circles are appended using `selectAll('circle').data().enter()`. The code manually parses CSV values with unary plus operators before rendering, and styles the plot with red, semi-transparent circles. Axis labels and a title are added as SVG text elements with custom font sizing.

AI-generated description

This scatter plot shows data about cars, from UCI Machine Learning Repository: Auto MPG Data Set.

MIT Licensed

Similar vizzes