Skip to main content
100%

ICE - 7 Resuable Scatter Plot Ganesh

✓ Published0🌍 Public
GGaneshPenumarthi
Last edited Mar 27, 2022
Created on Mar 27, 2022

This interactive scatter plot displays the Iris dataset, mapping petal width against sepal length and coloring each point by species. The visualization is built using D3.js v6, with `scaleLinear` for axes, `axisLeft`/`axisBottom` for ticks, and a reusable `scatterPlot` function that accepts configurable width, height, margins, and data accessors. Circles are joined via `selection.join`, with species-based color coding (red, green, blue). The plot renders in SVG, initially showing petal width on the x-axis, which then switches to sepal width for the final view.

AI-generated description
MIT Licensed

Similar vizzes