Skip to main content
100%

Assignment 2 Question1

✓ Published2🌍 Public
Mmeghna.reddy700@gmail.com
Last edited Apr 10, 2024
Created on Apr 9, 2024

This pie chart displays the distribution of survey responses about how many hours people spend on an activity, with the data segmented by genre and labeled with exact values. The chart renders as SVG using D3 v7, with `d3.pie` and `d3.arc` generating the slices from CSV data loaded via `d3.csv`. A color scale maps each genre to a distinct fill, while arc labels show the response values and a legend identifies the genre categories. The visualization loads data from a GitHub-hosted CSV and calculates the pie geometry from the numeric "Less than 3" column.

AI-generated description

A demonstration of pie chart

MIT Licensed

Similar vizzes