Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Pie chart

Public visualization

Pie chart

0 stars0๐ŸŒ Public
Ssandeep-gollamudi
Last edited Mar 27, 2022
Created on Mar 27, 2022
Forked from ICE-7 Pie chart

This pie chart visualizes the top 10 countries by tourist visits, with each slice labeled with its value in thousands. The chart renders as an SVG using D3 v5, employing `d3.pie` to compute arc angles and `d3.arc` to generate the path segments. Slice colors come from a `scaleOrdinal` mapping, and a legend lists each country with its corresponding color and value. Data is fetched as CSV from a GitHub gist, with tourist counts formatted using `d3.format` for concise display.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed