Skip to main content
100%

Assignment ICE 7

✓ Published1🌍 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
MIT Licensed

Similar vizzes