Skip to main content
100%

SDV_ACT_7.1_Q1

✓ Published0🌍 Public
MMANEEDI NAGAKIRAN
Last edited Nov 4, 2024
Created on Nov 2, 2024
Forked from Hello VizHub

This pie chart shows the distribution of gym types—Premium, Budget, and Standard—across ten sample gyms, including the count and percentage for each category. The visualization uses D3 v7’s `d3.pie()` and `d3.arc()` to generate the SVG paths, with a `d3.scaleOrdinal()` color scale based on `d3.schemeCategory10`. Each slice is labeled with its type, count, and percentage, computed from the hardcoded `gymData` array. The chart is rendered as an SVG, with the legend and labels placed directly on the arcs using `arc.centroid()`.

AI-generated description
MIT Licensed

Similar vizzes