Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Visualizing correlations between heart disease patients' data

Public visualization

Viewing a saved revision (read-only)

241e74cd44bc4eebbb679b0db0c6d5e3

Visualizing correlations between heart disease patients' data

0 stars0🌍 Public
AAshtone Onyango
Last edited Jul 9, 2022
Created on Jun 29, 2022

This interactive scatterplot displays correlations between heart disease patient attributes—such as age, cholesterol, and BMI—with heart disease status, using a red dot for each individual. Users select any attribute pair from the two dropdown menus to swap the axes, and the points animate smoothly into their new positions. The visualization is built with D3 v7, using the `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` APIs for scaling and axes, while `transition.attrTween` or `transition().duration().delay()` handles the animation. The data comes from a CSV file loaded via `d3.csv`.

AI-generated description