Skip to main content
100%

ICE 7 Reusable Scatter Plot (Sai Kaushik Ganji)

✓ Published0🌍 Public
SSai Kaushik Ganji
Last edited Oct 24, 2025
Created on Oct 23, 2025

A reusable D3 scatter plot displays the relationship between Horsepower and Fuel Efficiency, with points colored and shaped by vehicle segment. The chart reads from the local `vehicles.csv` file using `d3.csv` and `d3.autoType`. It builds an SVG using `d3.select`, `d3.scaleLinear` for axes, and `d3.scaleOrdinal` to map categories to colors from `d3.schemeSet2` and symbol types from `d3.symbolCircle`, `d3.symbolSquare`, `d3.symbolTriangle`, and `d3.symbolDiamond`. Axes are drawn with `d3.axisBottom` and `d3.axisLeft`, and data points are rendered via `d3.symbol` with a size of 100, including a legend listing each segment.

AI-generated description
MIT Licensed

Similar vizzes