Skip to main content
Public

Share visualization

Loading preview…

Polished Medical Cost Personal (with menu)

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Polished Medical Cost Personal (with menu)

0
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

Comments

Sign in to join the discussion.

MIT Licensed