Skip to main content
100%

activity_10

✓ Published0🌍 Public
Rrajkodavati7@gmail.com
Last edited Apr 29, 2024
Created on Apr 28, 2024
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes