Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

task9&10

Public visualization

task9&10

0 stars0๐ŸŒ 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

Comments

Sign in to join the discussion.

MIT Licensed