Medical Cost Personal (charges vs bmi)
This visualization displays the relationship between BMI and medical charges for individual patients, with each circle colored by smoking status and sized according to patient age. The plot uses positioned circles from the vega-lite-api library, rendering as an SVG through the vega and vega-lite specifications. Data comes from the Medical Cost Personal Dataset, loaded via d3.csv. The chart applies custom axis and label styling from a configuration object, while incorporating interactive tooltips through vega-tooltip to reveal each patient's region on hover.
AI-generated descriptionThis visualization shows Medical Cost Personal Dataset. It was designed with the objective to see understand clustering by charges and bmi by patient.
Each circle represent if the patient is a smoker, and t he size indicates the age of each patient.
A visualization constructed using the vega-lite-api.