Skip to main content
100%

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

✓ Published0🌍 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
MIT Licensed

Similar vizzes