Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of 8 class D3 in HTML vanilla

Public visualization

Viewing a saved revision (read-only)

d17a57c6ea414dcd8834467bd3d0d561

Fork of 8 class D3 in HTML vanilla

0 stars1🌍 Public
Ccssergio
Last edited Jun 9, 2022
Created on Jun 9, 2022

This example visualizes the Iris dataset as a scatter plot with elliptical markers, where each flower’s petal and sepal lengths determine the x and y positions, and widths control the ellipse radii. Points are colored by species using a switch statement for setosa (blue), versicolor (red), and virginica (black). The code uses D3 v6 APIs including `csv`, `scaleLinear`, `extent`, `axisLeft`, `axisBottom`, and a custom `scatterPlot` reusable function. Data is loaded from a remote CSV file and rendered as SVG ellipses with interactive titles.

AI-generated description

A reproduction of a title.