Skip to main content
100%

Pie Chart

✓ Published0🌍 Public
MMonish Galla
Last edited Apr 10, 2024
Created on Apr 10, 2024
Forked from Hello VizHub

This pie chart visualizes the distribution of a single category from a CSV dataset, showing the proportion of values across multiple person types. Built with D3.js v7, it uses `d3.csv` to fetch the data, `d3.pie` and `d3.arc` to compute and draw the slices, and `d3.scaleOrdinal` for the color scheme. A legend, generated alongside the chart, maps each slice to its corresponding type using the same categorical colors. The visualization is rendered as an SVG with a fixed 400x400 pixel canvas.

AI-generated description
MIT Licensed

Similar vizzes