ICE - 7 Reusable Scatter Plot
✓ Published1🌍 Public
RRadhakrishna246
Last edited Mar 27, 2022
Created on Mar 27, 2022
Forked from ICE - 7 Reusable Scatter Plot Maanas Katta
This scatter plot visualizes the Iris dataset, mapping petal width and sepal length onto x and y axes with circles colored by species (blue, red, yellow). It uses d3.scaleLinear, axisLeft, and axisBottom to render axes, with the data loaded via d3.csv. The reusable scatterPlot function is configured through chainable setters for dimensions, margins, and radius, then invoked with selection.call(plot). The code also cycles through different column combinations for the x-value, demonstrating the plot’s reusability.
AI-generated descriptionMIT Licensed