Skip to main content
100%

fresh block

✓ Published0🌍 Public
Aarcox80
Last edited Sep 24, 2017
Created on Sep 23, 2017

A donut chart displays the age distribution of a population from a CSV file, with seven categorical age groups shown as colored arcs and white labels. The visualization uses D3 v4’s `d3.pie` and `d3.arc` to generate the SVG paths, while `d3.scaleOrdinal` assigns a categorical color palette. Labels are positioned using `d3.arc` centroids, and the chart is centered within a 960×500 SVG canvas. Data is loaded asynchronously via `d3.csv`, and each arc’s fill color corresponds to its age category.

AI-generated description

Built with blockbuilder.org

mit Licensed

Similar vizzes