Medical Cost Personal (charges vs bmi)
This visualization uses an interactive scatterplot to explore the relationship between patient BMI and medical charges, with each circle representing a patient. The color distinguishes smokers from non-smokers, while the circle size encodes patient age. The chart is built with the vega-lite-api library on top of Vega-Lite and d3, loading data from a CSV file hosted as a GitHub gist. The code customizes the axes and label styling through a config object.
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.