Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ICE - 7 Reusable Scatter Plot

Public visualization

ICE - 7 Reusable Scatter Plot

0 stars1🌍 Public
RRadhakrishna246
Last edited Mar 27, 2022
Created on Mar 27, 2022

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 description

Comments

Sign in to join the discussion.

MIT Licensed