Polished Medical Cost Personal (with menu)
This interactive scatterplot explores the Medical Cost Personal Dataset, plotting patient attributes such as age, BMI, and charges against each other. Each circle represents a patient, with color indicating smoker status and size reflecting age, allowing for visual clustering analysis. Built with React and D3 v5, the visualization features dropdown menus that dynamically change the X and Y axes at runtime. The SVG rendering uses `scaleLinear` and `scaleOrdinal` from D3 to map data values, while custom React components like `AxisBottom`, `AxisLeft`, and `Marks` handle the chart elements. Data is loaded asynchronously via the `csv` function.
AI-generated descriptionThis visualization shows Medical Cost Personal Dataset. It was designed with the objective to see understand clustering by charges and age by patient.
UPDATE: Now include a menu to try others X and Y on runtime, and was made using react and D3 instead vega-lite-api.
Each circle represent if the patient is a smoker, and t he size indicates the age of each patient.