Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Assignment 9

Public visualization

Viewing a saved revision (read-only)

4597cca17a8a4c95b30abbd03e152848

Assignment 9

0 stars0🌍 Public
Jjakeh311@yahoo.com
Last edited Apr 23, 2024
Created on Apr 23, 2024
Forked from Hello VizHub

This example shows a pie chart built from CSV data fetched from a remote GitHub gist. The code uses `d3.csvParse` to convert the fetched text into tabular data, then passes it to `d3.pie()` with a value accessor, which computes arc angles for each segment. A `d3.arc()` generator with zero inner radius creates the pie slices, which are colored using `d3.scaleOrdinal` with `d3.schemeCategory10`. The chart is rendered as SVG inside a pre-existing `<svg>` element, though the arcs are appended but never actually drawn in the provided code.

AI-generated description