Skip to main content
100%

ICE - 7 Reusable Scatter Plot

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

This example displays the Iris dataset as an interactive scatter plot with colored circles representing species, where green, red, and blue distinguish Iris-setosa, Iris-versicolor, and Iris-virginica. The visualization uses a reusable D3 module that implements a custom scatter plot function, leveraging `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` to map petal width and sepal length onto axes. Data is loaded asynchronously from a CSV URL via `d3.csv`, and the plot re-renders with each button cycle through different measurement combinations.

AI-generated description
MIT Licensed

Similar vizzes