🌍 Public
Viewing a saved revision (read-only)
0cf4f07041924820899c87fc1edd85fb
Act6_3.2
This scatter plot displays sepal length against petal length for Iris flowers, with species encoded by distinct marker shapes. The visualization uses d3.scaleLinear for both axes and d3.scaleOrdinal with d3.symbolsFill to map species to shapes. A custom shapeLegend component draws the legend using d3.symbol to generate the path data. The visualization loads data from an external iris.csv file, parses it with d3.csvParse, and renders the marks as SVG paths via d3.join, with complete axes and labels provided by d3.axisLeft and d3.axisBottom.
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.