Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 6 Question 2

Public visualization

Viewing a saved revision (read-only)

b68682037f914f45b0640debce166cfc

Activity 6 Question 2

0 stars0🌍 Public
Rrahulnathmukkolla@gmail.com
Last edited Apr 4, 2024
Created on Mar 31, 2024
Forked from Hello VizHub

This stacked bar chart visualizes the percentage of cricket matches played across various categories, such as Test Matches, ODIs, T20Is, and domestic or youth formats, segmented by career match counts (e.g., below 50, 50–100, up to above 300). Hovering over a segment reveals the exact percentage for that category and match-count group via a tooltip. Built with D3 v7, the visualization uses `d3.stack()` to create the stacked bars, `d3.scaleBand()` for the categorical y-axis, and `d3.axisBottom()` with a linear scale for the percentage x-axis, rendering as SVG with a color scale for the five match-count ranges.

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.