Skip to main content
100%

Fork of Reusable D3 Scatter Plot

✓ Published0🌍 Public
Ssdarsi2404@gmail.com
Last edited Apr 1, 2025
Created on Apr 1, 2025

This example presents a fork of a reusable D3 scatter plot built in React with SVG rendering. It displays two scatter plots from cricket statistics: Runs versus Strike Rate and Wickets versus Balls Faced, with each point colored by match type (T20, ODI, or Test) using d3.scaleOrdinal and including interactive tooltips via appended title elements. Data is loaded as CSV using d3-fetch and processed with d3.axisBottom, d3.axisLeft, d3.extent, and d3.scaleLinear for scales and axes. The source data comes from a gist hosted on GitHub, rendered through React’s useEffect and useState hooks.

AI-generated description
MIT Licensed

Similar vizzes