Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

debug of ATS - Reusable Scatter

Public visualization

Viewing a saved revision (read-only)

c627712c735f448cb1736e9dd0f2aae6

debug of ATS - Reusable Scatter

0 stars0🌍 Public
Xxscotta@yahoo.com
Last edited Aug 27, 2024
Created on Aug 27, 2024

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