Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

hw1

Public visualization

Viewing a saved revision (read-only)

885ed3fb539c4f50a08272e8e9e5bd9c

hw1

0 stars0🌍 Public
Yyihsuan
Last edited Sep 18, 2023
Created on Sep 18, 2023
Forked from D3 Scatter Plot

This interactive scatterplot visualizes the Iris dataset, displaying flower measurements selected via radio buttons for both the X and Y axes. Users can switch between sepal length, sepal width, petal length, and petal width to explore relationships among the 150 samples. The code uses D3.js scaleLinear and extent functions to map data coordinates, with axes rendered using axisLeft and axisBottom. Radio button events trigger re-rendering of the SVG visualization, updating the circle positions accordingly.

AI-generated description

Shows the Iris dataset.