🌍 Public
Viewing a saved revision (read-only)
7152cb915d3e456db6d693c04df29530
Firoze_Tutorial 3.2
This example shows a scatter plot of the Iris dataset, mapping sepal length to the x-axis and petal length to the y-axis, with species encoded as different symbol shapes. It uses d3.scaleLinear and d3.scaleOrdinal to position points and assign shapes from d3.symbolsFill, while d3.axisLeft and d3.axisBottom render the axes. A custom legend, built with d3.symbol, lists the species names alongside their corresponding shapes. The data is loaded as CSV from GitHub and parsed with d3.csvParse.
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.