Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity_7

Public visualization

Viewing a saved revision (read-only)

5da081ff6f39467a9f86207c84ab07df

Activity_7

0 stars0🌍 Public
Aaschowdary.shashi@gmail.com
Last edited Nov 7, 2024
Created on Nov 7, 2024
Forked from Hello VizHub

This pie chart visualizes fruit category proportions loaded from a GitHub Gist CSV file, with each slice labeled and colored using d3.scaleOrdinal with d3.schemeSet3. The D3 v7 code loads the data via d3.csv, converts values to numbers, and generates arcs with d3.pie and d3.arc. A custom legend, built as HTML divs, displays each category’s color and percentage. The SVG rendering includes white category labels positioned at slice centroids.

AI-generated description