Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Assignment ICE 7

Public visualization

Assignment ICE 7

0 stars1🌍 Public
VVaishnavi6199
Last edited Mar 27, 2022
Created on Mar 27, 2022

This example shows a pie chart of units purchased for each item, with the item names and their values listed in a legend. The chart uses D3 v5 to load CSV data from a GitHub gist and renders SVG paths with d3.pie, d3.arc, and scaleOrdinal. Value labels are placed on each slice using the arc generator's centroid method, and the legend is built manually with appended rectangles and text elements.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed