Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

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

Public visualization

Viewing a saved revision (read-only)

ace8e51523cd42ad82449d65aeeaa37b

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

0 stars0🌍 Public
RRishi Kavikondala
Last edited Jun 1, 2021
Created on Jun 1, 2021

A React and D3 v6 pie chart renders four categorical slices as SVG paths, with each slice’s color interpolated between a warm orange and a deep red via `d3.interpolateRgb`. The chart is drawn using a d3 `arc` generator with inner and outer radii, centered within a 960×500 SVG viewport. The code also defines an unused `Check` component that would produce a row of five squares using a green-to-white color scale, though it is commented out in the main chart.

AI-generated description