Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Heart Disease Distribution

Public visualization

Viewing a saved revision (read-only)

2dbc92145470480fa1a8fa20e8fe6bb1

Heart Disease Distribution

0 stars0🌍 Public
Sshreyasribearelly@gmail.com
Last edited Apr 22, 2024
Created on Apr 20, 2024
Forked from HTML Starter

This pie chart visualizes the distribution of heart disease presence versus absence in a dataset. It shows only the proportional split between two categories, labeled “Heart Disease” and “No Heart Disease,” with the percentage of each slice displayed directly on the chart. The visualization uses the Chart.js library with its datalabels plugin to render and annotate a Canvas-based pie chart. Data is fetched from a raw CSV file on GitHub, then processed client-side by splitting rows and counting occurrences of “Yes” and “No” values. Tooltips also report percentages on hover.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.