Skip to main content
100%

Activity 6

✓ Published2🌍 Public
RRukmini Devi Y
Last edited Nov 5, 2024
Created on Nov 5, 2024
Forked from Hello VizHub

This pie chart visualizes the distribution of heart disease cases, showing 138 instances with the condition against 100 without. The D3.js code uses `d3.scaleOrdinal` for categorical coloring, `d3.pie` for arc generation, and `d3.arc` for path construction, rendering to an SVG canvas. Labels appear at arc centroids, while a legend below maps colors to categories. The data is hardcoded in the script.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes