Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

activity7_QUE1

Public visualization

activity7_QUE1

0 stars0๐ŸŒ 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

Comments

Sign in to join the discussion.

MIT Licensed