Skip to main content
šŸŒ Public

Share visualization

Send this visualization to others.

Fork of Fork of hw4

Public visualization

Viewing a saved revision (read-only)

6ec57b7bb1cc42d9ac362129df72d8ce

Fork of Fork of hw4

0 stars0šŸŒ Public
Hhuangweijie0310102@gmail.com
Last edited Oct 15, 2023
Created on Oct 15, 2023
Forked from Fork of hw4

This visualization presents the classic Iris dataset as a scatterplot matrix, with each cell comparing two of the four measured features. The diagonal cells display histograms of each feature, while the off-diagonal cells show scatterplots of the data points. The code uses D3 v5 with SVG rendering, employing `d3.scaleLinear`, `d3.scalePoint`, and `d3.axisBottom`/`d3.axisLeft` to construct the axes. Each histogram is built with `d3.histogram`, and the points are colored by species using a custom color function. The visualization also includes a legend that allows users to select data subsets, which the histograms then update to reflect the filtered categories.

AI-generated description