Reusable Scatter Plot - Data Visualization
✓ Published0🌍 Public
DDanthalakirankumar
Last edited Mar 27, 2022
Created on Mar 27, 2022
Forked from ICE - 7 Reusable Scatter Plot Maanas Katta
This reusable scatter plot visualizes the Iris dataset, mapping petal width against sepal length. Each circle represents a data point, color-coded by species (setosa, versicolor, virginica) using a custom `getColor` function. Built with D3 v6, it uses `scaleLinear`, `axisLeft`, and `axisBottom` to render axes, while the `scatterPlot` factory pattern allows dynamic updates to x-value selections. The SVG is drawn full-window on an orange background with white text and axis labels.
AI-generated descriptionMIT Licensed