🌍 Public
Viewing a saved revision (read-only)
b3ab9017c3eb4429899ee12a88226cfb
debug of ATS - Reusable Scatter
This example demonstrates a reusable scatterplot component built with D3.js that visualizes the Iris flower dataset, plotting sepal length against sepal width while encoding petal size through point radius and species through color. The code constructs the chart using D3's `scaleLinear` for axes and point sizing, `scaleOrdinal` for categorical color assignment, and `symbol` with `symbolCircle` to render the data points as SVG paths. The visualization includes axis labels, a title, and a grid, all rendered as SVG elements within a bounded container, with the reusable chart function accepting configurable dimensions, margins, and data accessors.
AI-generated description