Skip to main content
100%

task9&10

✓ Published0🌍 Public
HHanuReddy
Last edited Apr 16, 2024
Created on Apr 15, 2024

This pie chart displays the proportional distribution of fruit quantities from a CSV file, labeling each slice with its fruit name and including a color-coded legend. Built with D3 v7, it uses the `d3.pie` and `d3.arc` generators to compute and render arcs as SVG paths, with `d3.scaleOrdinal` assigning categorical colors. Data is loaded asynchronously via `d3.csv`, and labels are positioned using `arc.centroid`.

AI-generated description
MIT Licensed

Similar vizzes