Skip to main content
100%

Visualizing correlations between heart disease patients' data

✓ Published0🌍 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
MIT Licensed

Similar vizzes