🌍 Public
Viewing a saved revision (read-only)
6bbe262729364750ba883dd3ca82f7a6
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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.