activity_10
✓ Published0🌍 Public
This example displays a pie chart of travel expenses aggregated by traveler gender, using data loaded from a CSV file via a GitHub gist. It shows the proportion of total accommodation and transportation costs attributed to male and female travelers, with a legend and percentage labels for each segment. The visualization is built with D3.js v7, using `d3.csv` for data fetching, `d3.pie` and `d3.arc` for the chart geometry, and a `d3.scaleOrdinal` for color encoding. Text annotations and a legend are rendered directly in SVG.
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.
MIT Licensed