🌍 Public
Viewing a saved revision (read-only)
063d0317ff9c4d929bad6ecb67d9d232
tutorial 3.2
This scatter plot shows the relationship between sepal length and petal length for different iris species, with the species encoded by symbol shape. The d3.js v7 code builds the visualization using a `scaleLinear` for the axes, a `scaleOrdinal` for the categorical shape mapping, and `symbolsFill` from d3 to render the points. It also includes a custom legend that displays each species with its corresponding shape, and the plot loads data from a CSV file containing the iris dataset. The axes and labels are generated using d3's `axisLeft` and `axisBottom` functions.
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.