Viewing a saved revision (read-only)
m0ulQFTJZ2aSJVNeE9b2P
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 descriptionReact 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— loadsdata.csvand 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.