Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ICE_7_Nirupama_Scatterplot

Public visualization

ICE_7_Nirupama_Scatterplot

0 stars0🌍 Public
NNirupama Karanam
Last edited Oct 25, 2025
Created on Oct 24, 2025

This scatterplot displays the relationship between mileage (MPG) and price for a dataset of cars, with each point colored by brand using a Tableau10 ordinal scale. The reusable component pattern in `index.js` builds the SVG chart with D3 v7, using `d3.scaleLinear` for both axes and `d3.axisBottom`/`d3.axisLeft` for ticks. Hover tooltips appear via the SVG `title` element, showing the car model, mileage, price, and brand. Data loads from a raw GitHub Gist CSV file, processed with `d3.csv` and `d3.autoType`. The legend, positioned to the right, lists all brand categories with matching colors.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed