Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ESP D3 v7

Public visualization

Viewing a saved revision (read-only)

bca81aba11ca48c1b549df7aff005c7d

ESP D3 v7

0 stars0🌍 Public
Ttebanieo
Last edited Feb 16, 2023
Created on Feb 16, 2023
Forked from HTML Starter

This example shows a scatter plot of the Iris dataset, with sepal length on the x-axis and petal length on the y-axis, colored by species using a d3.scaleOrdinal with a viridis-like palette. Users can brush horizontally along the x-axis to zoom into a selected range, which updates the axis domain and repositions the circles with a transition. The visualization uses SVG rendering with d3.brushX for interactive selection, a clipPath to confine drawing, and d3.axisBottom for the dynamically re-scaled axis.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.