Skip to main content
100%

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

✓ Published0🌍 Public
PPiotr Paszek
Last edited Mar 6, 2021
Created on Mar 6, 2021

This example shows a donut-style pie chart rendered as an SVG in React, with four slices colored along an interpolated gradient from orange to deep red using `d3.interpolateRgb`. The chart is built with `d3.pie()` to compute slice angles and `d3.arc()` to generate the path shapes, while the React components `Slice` and `SimplePieChart` manage the SVG structure. Although the `Check` component defines a horizontal strip of rectangles using `d3.interpolateRgb`, it is commented out and not displayed.

AI-generated description
MIT Licensed

Similar vizzes