Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Activity6 Tutorial3

Public visualization

Fork of Activity6 Tutorial3

0 stars0🌍 Public
Yyadlapallisaisathvik@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024

A scatter plot visualizes the relationship between vehicle price and mileage for 21 used cars, with each point colored by price tier: green for under $25,000, yellow for $25,000–35,000, orange for $35,000–45,000, and red for over $45,000. Built with D3.js v7, the plot uses `d3.select`, `d3.csv`, `d3.scaleLinear`, `d3.extent`, and `d3.axisBottom`/`d3.axisLeft` to render SVG axes and circles. Hovering over a point triggers a `d3.transition` that enlarges the circle and appends a temporary text tooltip showing the car’s make, model, and price.

AI-generated description

Here is the scatter plot for the given iris data.

Comments

Sign in to join the discussion.

MIT Licensed