🌍 Public
Viewing a saved revision (read-only)
b68682037f914f45b0640debce166cfc
Activity 6 Question 2
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 descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.