Skip to main content
100%

assigment-2

✓ Published3🌍 Public
AAjay Simha Reddy
Last edited Mar 26, 2025
Created on Mar 25, 2025
Forked from Hello VizHub

This example displays a pie chart comparing the frequency of diabetes outcomes from a CSV dataset, distinguishing between individuals with and without diabetes using light blue and red slices. It also includes a legend beside the chart that repeats the category labels and counts. The visualization is built with D3.js v6, using d3.pie and d3.arc to generate the slices, d3.scaleOrdinal for colors, and SVG elements for rendering. Labels are positioned at each slice’s centroid, and the data is loaded asynchronously via d3.csv from a GitHub gist URL.

AI-generated description
MIT Licensed

Similar vizzes