Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity-7

Public visualization

Viewing a saved revision (read-only)

4e999f5fde2b48bd9a008bbb1048bebc

Activity-7

0 stars0🌍 Public
Aadapasaidivya99@gmail.com
Last edited Nov 6, 2024
Created on Nov 5, 2024
Forked from Hello VizHub

This example presents a pie chart that visualizes the distribution of cricket players by their home country, using data aggregated from top test cricket records. Built with D3 v5, the chart slices represent the player counts, with each section labeled and colored via a categorical scale. The visualization employs D3's `pie` layout, `arc` generator, and `scaleOrdinal` for color assignment, while a custom legend displays both country names and player totals. The SVG-based chart is rendered on a canvas, with a title and subtitle indicating the dataset's theme.

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.