ICE - 7 Resuable Scatter Plot Ganesh
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.