Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Final Project

Public visualization

Viewing a saved revision (read-only)

0cd89a9c49ca42ba9b173ac743b8b5e9

Final Project

0 stars0🌍 Public
Jjojongo15342@gmail.com
Last edited Nov 14, 2025
Created on Nov 14, 2025
Forked from Prototype 4

This scatter plot displays insurance charges against patient age, with points colored by a user-selected attribute such as smoker status, sex, region, BMI category, or number of children. A legend updates dynamically, and linear regression lines are calculated for each color group to reveal trends. Built with React and D3.js (d3.v7), the visualization uses `d3.csv`, `d3.scaleLinear`, `d3.scaleOrdinal`, and `d3.axisBottom`/`d3.axisLeft` to render the chart from the `data.csv` file.

AI-generated description