🌍 Public
Viewing a saved revision (read-only)
942de51343344679b37c3ffc7b416a77
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