Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

assignment-2 fork

Public visualization

Viewing a saved revision (read-only)

1951fd4555674dcbaa368b842e1a3ee6

assignment-2 fork

0 stars2🌍 Public
GGanesh Raju Yadav
Last edited Apr 12, 2024
Created on Apr 12, 2024
Forked from Activity7question1

This static pie chart shows the distribution of fruit quantities. The visualization is rendered as an SVG, with each slice labeled by its corresponding fruit name. The code loads data from a CSV file hosted on a GitHub gist using `d3.csv`. It employs `d3.pie` to compute the arc segments, `d3.arc` for the path geometry, and `d3.scaleOrdinal` with `d3.schemeCategory10` for coloring. The chart is centered within a 600x400 SVG canvas, with a title placed above the plot.

AI-generated description

A demonstration of how to start using D3 version 6.