Skip to main content
100%

Fork of [TEST] Pie Chart

✓ Published0🌍 Public
RRohit-2710
Last edited Feb 22, 2021
Created on Feb 22, 2021
Forked from [TEST] Pie Chart

This example shows the religious composition of twelve countries as a pie chart, with each slice colored and labeled in a legend that displays the percentage of the total population. The chart is built using D3 v5, with `d3.pie()` generating the arc data and `d3.arc()` rendering the SVG paths. The data is loaded from a CSV file via `d3.json`, and values are converted from strings to numbers. The chart uses a custom color scale and positions the legend to the right of the pie.

AI-generated description
MIT Licensed

Similar vizzes