🌍 Public
Viewing a saved revision (read-only)
8bfb5366fd6a411cae33ba6d5511d849
Activity6 task3.2
This scatter plot visualizes the Iris dataset, plotting sepal length against petal length. Each point is rendered as a distinct symbol—circle, cross, or square—to represent the three species of Iris flowers, categorized on a categorical color scale. The visualization is built using D3.js (v7), using the `scaleLinear` and `scaleOrdinal` APIs to map data to positions and symbols. Axes and a shape legend are drawn using custom `axes` and `shapeLegend` modules, which utilize D3’s `axisLeft` and `axisBottom` functions. Data is loaded from a remote CSV file and parsed with `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.