Skip to main content
Public

Share visualization

Loading preview…

Medical Insurance Cost Scatterplot

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Medical Insurance Cost Scatterplot

1
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

This dataset is a new one that I think suits the project better and that I am more interested in. It describes health information like age, sex, BMI, number of children, and how much they are charged on medical insurance. This data was sourced from insurance records.

The dataset consists of 7 attributes and over 1000 rows, which include:

Age Sex BMI Children Smoker Region Charges

https://www.kaggle.com/datasets/mosapabdelghany/medical-insurance-cost-dataset

Comments

Sign in to join the discussion.

MIT Licensed