Skip to main content
100%

Pie Chart

✓ Published0🌍 Public
VVAbhiram99
Last edited Apr 7, 2023
Created on Apr 6, 2023
Forked from Pie Chart

This pie chart displays survey data on time spent on self-study by students during COVID-19, with each slice representing a different age group and its corresponding study hours. The visualization uses d3.pie and d3.arc to generate the chart, d3.scaleOrdinal with schemeCategory10 for slice coloring, and appends SVG paths to the rendered DOM. A legend with color swatches and labels is constructed using D3 selections, while the data is loaded via d3.csv from a GitHub gist and sorted by study time before rendering.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes