🌍 Public
Viewing a saved revision (read-only)
496edffa1ddf49ae91bce0a2bc2b6ec4
activity7.1-QUESTION1
This chart displays tourism revenue in billions of dollars for different destination countries as a pie chart with a custom legend. Each slice is colored using a pastel ordinal scale via `d3.scaleOrdinal`, sized by `d3.pie`, and drawn with `d3.arc`. Revenue values are labeled atop each slice. The chart reads CSV data from a GitHub gist and aggregates it with `d3.rollup` and `d3.sum`, rendering as SVG within an HTML page styled by CSS.
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.