Skip to main content
Public

Share visualization

Loading preview…

Fork of Pie Chart

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Fork of Pie Chart

0
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.

Comments

Sign in to join the discussion.

MIT Licensed