ice-7 Q1 "Resuable Scatter Plot"
✓ Published0🌍 Public
This example presents a reusable scatter plot that visualizes cricket statistics over time, cycling the x-axis through different numeric columns every two seconds. Built with D3 v6, it uses `scaleLinear`, `scaleOrdinal`, and `symbol` to render players as distinct shapes, with the SVG updating via `svg.call(plot)` to retrigger the chart. Data loads from a CSV file containing yearly runs, outs, and fours, and the chart supports configurable margins, radius, and accessor functions for flexibility. The implementation follows Mike Bostock’s “Towards Reusable Charts” pattern with a closure-based API.
AI-generated descriptionA reusable scatter plot inspired by Towards Reusable Charts.
MIT Licensed