Skip to main content
100%

Assignment 3

✓ Published1🌍 Public
AAbhi Yammanuru
Last edited Sep 7, 2025
Created on Sep 7, 2025

This visualization displays the relationship between age and cholesterol levels in a heart attack prediction dataset from Kaggle. Each circle represents a patient, positioned by age on the x-axis and cholesterol on the y-axis. Built with React and D3 v7, the visualization loads CSV data and uses `d3.scaleLinear` for axis scaling. Circles are rendered using the D3 `selectAll().join()` method to bind data points to SVG circle elements, creating a scatter plot where all points share the same size and color.

AI-generated description

Visualization of Heart Attack Prediction Dataset

https://www.kaggle.com/datasets/fedesoriano/heart-failure-prediction - Dataset

Columns: "Age": Numerical, "Sex": Categorical, "ChestPainType": Ordinal, "RestingBP": Numerical, "Cholesterol": Numerical, "FastingBS": Numerical, "RestingECG": Categorical, "MaxHR": Numerical, "ExerciseAngina": Categorical, "Oldpeak": Numerical, "ST_Slope": Categorical, "HeartDisease": Numerical

This data visualization maps Age on the X axis and Cholesterol on the Y axis.

MIT Licensed

Similar vizzes