🌍 Public
Viewing a saved revision (read-only)
c15667957f634229a9f553f7db857d07
act7.Q1
This pie chart visualizes the calories burned per 30 minutes across different target muscle groups, with each slice color-coded by muscle type and paired with a legend. The visualization uses D3 v5’s `pie` and `arc` generators to calculate slice angles and paths, while `scaleOrdinal` maps categorical muscle groups to a fixed color palette. Data is loaded asynchronously from a CSV file using `d3.csv`, and values are parsed as numbers before being aggregated. The SVG is centered on the page, with all chart elements rendered as SVG shapes.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.