🌍 Public
Reusable D3 Scatter Plot
This reusable D3 scatter plot visualizes T20I cricket batting leaders, plotting total runs against batting average for individual players. The component groups players into low, medium, and high run-scoring tertiles, which are distinguished using an ordinal color scale based on `d3.schemePuBu`. The code loads remote CSV data via `d3.csv`, applies custom row parsing to extract player countries, and implements a configurable chart component with settable accessors for dimensions, margins, and data values. The plot renders as SVG with axes generated through `d3.axisLeft` and `d3.axisBottom`.
AI-generated descriptionMIT Licensed
Comments
Sign in to join the discussion.