Skip to main content
Public

Share visualization

Loading preview…

Arsenal: Match Outcomes by Opponent (W-D-L Breakdown)

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Arsenal: Match Outcomes by Opponent (W-D-L Breakdown)

0 stars0Public
WWaleed Mirza
Last edited Nov 20, 2026
Created on Nov 20, 2026

This example visualizes Arsenal’s Premier League match outcomes against 18 opponents using stacked bars segmented by wins, draws, and losses. Users can reorder opponents alphabetically, by total points, or by points per match, and switch between stacked bars and small multiples alignments. The visualization highlights selected bars through outline, color change, size, or motion effects. It loads data from a CSV via `d3.csv`, uses `d3.stack`, `d3.scaleBand`, and `d3.scaleLinear` for rendering, and manages interactive state with click and hover events.

AI-generated description

React D3 Starter

A minimal React + D3 starter for building interactive data visualizations.

Files

  • index.html — page shell and import map (React + D3 from a CDN).
  • index.jsx — mounts the <App /> component.
  • App.jsx — loads data.csv and renders the visualization.
  • viz.js — D3 render entry point.
  • renderCircles.js — draws the circles.
  • useContainerDimensions.js — tracks the container size.
  • data.csv — sample data.
  • styles.css — page styles.

Getting started

Edit App.jsx to change what gets rendered; the preview updates live as you type.

Comments

Sign in to join the discussion.