🌍 Public
HW Colored Scatter Plot With Interactive Filtering
This scatter plot visualizes the correlation between car horsepower and weight, with points colored by country of origin using the D3 ordinal color scale `d3.scaleOrdinal` and `d3.schemeDark2`. Users can click a legend item to filter the displayed points, dimming all other categories. The visualization is rendered as an SVG using D3 v5, with axes and scales built via `d3.axisBottom` and `d3.axisLeft`, and data loaded from the UCI Auto MPG dataset.
AI-generated descriptionThis scatter plot shows the correlation between car horsepower and car weight, categorized by car origin, from UCI Machine Learning Repository: Auto MPG Data Set.
MIT Licensed
Comments
Sign in to join the discussion.