Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Medical Insurance Cost Scatterplot

Public visualization

Viewing a saved revision (read-only)

cf19dd6e399342f089132e7a6a900a45

Medical Insurance Cost Scatterplot

0 stars1🌍 Public
Jjojongo15342@gmail.com
Last edited Sep 11, 2025
Created on Sep 11, 2025

This scatterplot visualizes the relationship between patient age and medical insurance charges across over 1,000 records from a Kaggle dataset. Each green circle represents an individual, with age plotted on the x-axis and charges on the y-axis, revealing a general upward trend in costs with age. The React app loads data from a CSV file using d3.csv, then the viz.js module applies d3.scaleLinear and d3.extent to map values to screen coordinates, rendering circles with d3’s selection and join methods.

AI-generated description