Skip to main content
100%

Interactive Demographic Donut Chart

✓ Published0🌍 Public
Iindira-antgrvty
Last edited Jan 24, 2023
Created on Jan 22, 2023

This interactive donut chart visualizes the distribution of players across demographic categories, showing subcategories like age ranges (18–24, 25–34) and gender (male, female) as colored slices with hover tooltips displaying percentages and counts. A dropdown menu lets users switch between age and gender views, triggering animated transitions between datasets. The visualization uses d3.pie, d3.arc, d3.scaleOrdinal, and d3.transition in SVG, with data loaded from a CSV file via d3.csv. Hover interactions and a legend with category labels enhance readability.

AI-generated description

Interactive Donut Chart with Category Menu with D3

This visualization shows the number of players for each demographic category (age and gender). Each slice along with associated color represents a subcategory of the age and gender class. The dropdown at the top allows filtering factories based on the selection of category. Users can are given the default view of the age class or and can select the other category 'gender' through the dropdown menu. Hovering over slices of donut chart shows labels, percent, and the total number of users.

MIT Licensed

Similar vizzes