Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Iterated Medical Insurance Cost Scatterplot

Public visualization

Iterated Medical Insurance Cost Scatterplot

0 stars1๐ŸŒ Public
Jjojongo15342@gmail.com
Last edited Sep 25, 2025
Created on Sep 18, 2025

This chart visualizes medical insurance costs by plotting age against charges for individual patients. Each point is colored by smoking status, with red circles representing smokers and green representing non-smokers, making the higher charges associated with smoking immediately apparent. The visualization is built with a React component using D3 v7's `scaleLinear`, `axisBottom`, `axisLeft`, and `select` to render an SVG scatterplot. Data is loaded asynchronously from a CSV file using D3's `csv` method.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed