Skip to main content
Public

Share visualization

Loading preview…

Fork of Pie chart in React & D3 - 1st attempt

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 in React & D3 - 1st attempt

0
SshanLU999
Last edited May 26, 2021
Created on May 26, 2021

A React and D3 pie chart renders five categorical slices with a color scale interpolated from peach to deep red via `d3.interpolateRgb`. The chart uses `d3.pie()` to compute arc angles and `d3.arc()` to generate SVG paths, with an inner radius creating a donut effect. An unused `Check` component demonstrates a separate linear gradient of rectangles, though it is commented out and not part of the final SVG output.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed