Medical Insurance Cost Scatterplot
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 descriptionThis 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