Skip to main content
100%

activity7_QUE1

✓ Published0🌍 Public
Ggouthamigongidi2457@gmail.com
Last edited Nov 5, 2024
Created on Nov 5, 2024
Forked from activity7_tutorial

This interactive pie chart visualizes tourism revenue distribution by country, with each slice labeled with its corresponding value in billions of dollars and a color-coded legend. The chart is built using D3.js v7 with SVG rendering, employing the `d3.pie` layout, `d3.arc` for path generation, and `d3.scaleOrdinal(d3.schemeCategory10)` for categorical colors. Data is loaded as CSV from a GitHub Gist and aggregated using `d3.rollup` and `d3.sum`. Text labels are positioned using `arc.centroid` with an offset factor.

AI-generated description
MIT Licensed

Similar vizzes