Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 7 PieChart

Public visualization

Viewing a saved revision (read-only)

8a4ca8b8719b4820addd905d112e3c0e

Activity 7 PieChart

0 stars1🌍 Public
Gguttavenkata745@gmail.com
Last edited Oct 29, 2024
Created on Oct 29, 2024
Forked from Hello VizHub

This D3.js pie chart displays global internet usage by country, with each slice representing a country and its corresponding number of users. The visualization loads data from a remote CSV file and uses `d3.pie`, `d3.arc`, and `d3.scaleOrdinal` with `d3.schemeCategory10` for coloring. Labels are positioned using a custom `labelArc`, and an HTML legend is built dynamically. The SVG chart is rendered with D3's selection and data-binding methods, while styling is applied through external CSS.

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.