🌍 Public
Viewing a saved revision (read-only)
3a464d382a7249f4afe3784d15424a60
Reusable scatterplot
This example demonstrates a reusable scatterplot component built with D3.js, visualizing the classic Iris dataset loaded from a CSV file. The chart plots petal length and width measurements as circles, with axes generated using D3's scaleLinear and axisLeft/axisBottom functions. The scatterPlot function exposes configurable setters for width, height, data, margins, and radius, allowing the chart to be adapted and reused. The visualization renders as SVG, sized to fill the browser window.
AI-generated description