Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fruits

Public visualization

Viewing a saved revision (read-only)

0ab224a06e374e689ee42c9817f2218e

Fruits

0 stars0🌍 Public
Nnikhithadadi@my.unt.edu
Last edited Apr 13, 2024
Created on Apr 13, 2024
Forked from Hello VizHub

This pie chart visualizes the quantity distribution of different fruit items, with each slice labeled by its item name and corresponding value. The visualization loads data from an external CSV file containing fruit quantities and renders the chart as an SVG. The code uses the D3.js v7 library, specifically employing `d3.pie`, `d3.arc`, and `d3.scaleOrdinal` with the `schemeCategory10` color palette. A legend is generated from the data domain, and the chart is centered within an SVG canvas using coordinate transformations.

AI-generated description