🌍 Public
Viewing a saved revision (read-only)
7c7f698c31794431b8d3fb642655ec2c
Tutorial 3.2
This scatter plot displays iris flower measurements, mapping sepal length and petal length to Cartesian coordinates while encoding species with different SVG symbols. The visualization uses d3.scaleLinear for axes, d3.scaleOrdinal with d3.symbolsFill to assign distinct shapes, and a custom shape legend positioned at a fixed offset. Data is loaded asynchronously from a GitHub-hosted CSV file and parsed with d3.csvParse. The code builds the chart through reusable d3 function components for axes, legend, and plot rendering.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.