Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Pie Chart

Public visualization

Viewing a saved revision (read-only)

71feac9c06a4436fa85aa6f5326cbfbe

Fork of Pie Chart

0 stars0🌍 Public
Nneeharika2023@gmail.com
Last edited Mar 27, 2024
Created on Mar 27, 2024
Forked from Script Test

This fork of a pie chart visualizes travel expenses by category, displaying each expense segment with its corresponding price label and an aligned legend that pairs color swatches with specification names and values. The chart uses D3 v5 APIs including `d3.pie()`, `d3.arc()`, and `d3.scaleOrdinal()` to compute the pie geometry and color mapping, with data loaded asynchronously from a remote CSV via `d3.csv()`. Rendered as an SVG, the chart positions segments and legend elements through D3’s selection and attribute methods, with text formatting applied via `d3.format()`.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.