Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ice7_task1

Public visualization

ice7_task1

0 stars0🌍 Public
Kkmohithkumar7@gmail.com
Last edited Oct 26, 2025
Created on Oct 26, 2025

A reusable scatter plot displays car price versus miles per gallon, with each dot representing a vehicle and colored via a random Tableau10 palette entry. The chart is built as a configurable JavaScript function using D3 v7, employing `d3.scaleLinear`, `d3.axisBottom`, and `d3.axisLeft` to render axes and SVG circles for data points. Data loads from a remote CSV file via `d3.csv` with `d3.autoType`, and tooltips show car model and brand on hover. The visualization highlights the relationship between vehicle cost and fuel efficiency across the Cars dataset.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed