Skip to main content
100%

Activity 6 Question 2

✓ Published0🌍 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

Analyzing the Number of matches played in different categories of cricket

This stacked bar chart gives the percentage of number of matches played in diffferent categories of cricket.If we place cursor on a bar in stacked bar it gives us the percentage of matches played in that category.

MIT Licensed

Similar vizzes