Reusable D3 Scatter Plot with Symbols
✓ Published0🌍 Public
This reusable D3 scatter plot visualizes the Iris dataset by mapping petal length and sepal length along the x and y axes, with species encoded through distinct symbols. Built with D3 v7, it uses `scaleLinear` for axes, `scaleOrdinal` with `symbols` and `symbol` to render marks as SVG paths, and `axisLeft`/`axisBottom` for the chart framework. The `scatterPlot` function is configurable via chained setters for width, height, data, and margins, ingesting CSV data through `csv` and rendering in an SVG container.
AI-generated descriptionMIT Licensed