Skip to main content
100%

Reusable D3 Scatter Plot

✓ Published0🌍 Public
AArun Kumar M
Last edited Oct 25, 2025
Created on Oct 25, 2025

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 description
MIT Licensed

Similar vizzes