Skip to main content
100%

Polished Medical Cost Personal (with menu)

✓ Published0🌍 Public
Mmeperezcuello
Last edited Oct 2, 2019
Created on Oct 2, 2019

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 description

This 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.

A visualization constructed using the React. and D3

MIT Licensed

Similar vizzes