Skip to main content
100%

Fork of Project Momentum Color

✓ Published1🌍 Public
AAbhi Yammanuru
Last edited Nov 16, 2025
Created on Nov 16, 2025

This interactive scatter plot explores the relationship between patient age and a selectable health metric (cholesterol, resting blood pressure, max heart rate, oldpeak, or age) from a heart disease dataset. A dropdown menu controls the Y-axis variable. The visualization uses D3.js (v7) within a React framework to render an SVG, featuring a legend that allows users to hover and filter data points by gender, highlighting male and female patients in dark blue and pink, respectively. The chart updates dynamically with selections.

AI-generated description

Heart Disease Data Visualization

Interactive D3.js visualization of heart disease data with React.

Features

  • Adjustable Y-Axis: Select from multiple variables to display on the Y-axis (Cholesterol, Resting BP, Max Heart Rate, Oldpeak, Age)
  • Gender Filtering: Hover over the legend to filter data by gender (Male/Female)
  • Interactive Chart: Scatter plot showing the relationship between Age (X-axis) and selected variables (Y-axis)
  • Color-Coded: Males displayed in dark blue, females in pink

Available Y-Axis Variables

  • Cholesterol
  • Resting BP (Blood Pressure)
  • Max Heart Rate
  • Oldpeak
  • Age

How to Use

  1. Use the dropdown menu at the top to select which variable to display on the Y-axis
  2. Hover over the legend items (Male/Female) to highlight specific gender groups
  3. The chart updates dynamically based on your selections
MIT Licensed

Similar vizzes