Skip to main content
100%

Activity_7.1

✓ Published0🌍 Public
Ddabbararakshitha@gmail.com
Last edited Apr 11, 2025
Created on Apr 11, 2025
Forked from Hello VizHub

This example shows a pie chart of survey responses by age group. The chart is built with d3.pie() and drawn with d3.arc(), colored using d3.scaleOrdinal() with the d3.schemeCategory10 palette. Each slice is labeled with its age group, and a legend on the upper left matches colors to categories. Data is loaded asynchronously from a remote JSON file using d3.json(). The visualization is rendered as SVG within a fixed 500 by 400 pixel viewport, with all graphical elements customized through D3’s selection and attribute methods.

AI-generated description
MIT Licensed

Similar vizzes