Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

310551076_HW1_Scatter Plots

Public visualization

Viewing a saved revision (read-only)

f008be138df642dc80b8f3b09c8aeed8

310551076_HW1_Scatter Plots

0 stars1🌍 Public
陳陳泰元
Last edited Oct 20, 2022
Created on Oct 1, 2022
Forked from Scatter Plot 2

This interactive scatter plot visualizes the Iris dataset, showing how three flower species cluster across selected measurement pairs. Two dropdown menus allow users to independently choose which of the four features (sepal length, sepal width, petal length, petal width) appear on the x- and y-axes. The code uses D3.js v7 with SVG rendering, employing `scaleLinear`, `axisBottom`, and `axisLeft` to build the axes and gridlines. Circles are colored by species using a hardcoded color map, and the chart updates dynamically through the `render` function.

AI-generated description