Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork - Colors pie view with D3 and React

Public visualization

Fork - Colors pie view with D3 and React

0 stars0🌍 Public
DDeepak Tomson
Last edited Jul 30, 2021
Created on Jul 30, 2021

A circular pie chart displays color swatches in a color wheel, with each slice filled by a color from a CSV dataset loaded from a GitHub gist. This D3.js and React example uses `d3.arc` to generate the pie slice paths and `d3.pie` to compute angular values, though the code manually calculates start and end angles. The chart is rendered as an SVG, centered within a fixed 960 by 400 viewport. Individual color values from the CSV's "HEX" column directly determine the fill of each path, creating a rainbow-like ring of distinct hues.

AI-generated description

Smiley face implementation with React & D3.

Comments

Sign in to join the discussion.

MIT Licensed