ESP D3 v7
✓ Published0🌍 Public
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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed