Skip to main content
100%

color pie

✓ Published1🌍 Public
GGuitong Li
Last edited Feb 3, 2022
Created on Feb 3, 2022
Forked from Corona App

This visualization displays the entire CSS color palette as a single pie chart, where each color name from the dataset is represented by a slice filled with its corresponding hex value. The chart uses a React component that loads data from a CSV file via `d3.csv`, then applies the `d3.pie` layout and `d3.arc` generator to render the SVG paths. The inner and outer radii are set to 200 and 300, creating a donut effect, with each slice colored directly from the data’s RGB hex column.

AI-generated description

This bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in United Nations: World Population Prospects 2017. It also demonstrates customization of D3 axes.

See also the first bar chart visualization that this one builds on: Making a Bar Chart.

MIT Licensed

Similar vizzes