Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of pie chart

Public visualization

Viewing a saved revision (read-only)

9406f419296c47a5acdca891f9615fc6

Fork of pie chart

0 stars2🌍 Public
Bbharathavulapati@gmail.com
Last edited Apr 1, 2025
Created on Apr 1, 2025
Forked from Fork of CE-7 Q2

A pie chart shows the total fruit yield from 2014 to 2024, with slices sized by each fruit's summed yearly values and sorted in descending order for readability. The visualization uses D3 v6's `d3.pie` and `d3.arc` to create the SVG paths, with `d3.scaleOrdinal` assigning colors from `d3.schemeCategory10`. A legend on the right maps each fruit to its colored box and total yield, built using D3's `selectAll` and `enter` operations. The underlying data comes from a CSV file fetched via `d3.csv` from a remote gist.

AI-generated description