Activity6_Task3.2
✓ Published0🌍 Public
This example demonstrates a scatter plot of the Iris dataset, encoding sepal length on the x-axis, petal length on the y-axis, and species as symbol shapes (circles, triangles, and squares) with a custom legend. It uses d3.scaleLinear for axes, d3.scaleOrdinal with d3.symbolsFill for shape mapping, and d3.axisLeft/axisBottom via a reusable axes module. The data loads asynchronously as CSV from a GitHub repository and is parsed with d3.csvParse. The visualization builds its SVG using d3.select and join patterns, with local ES6 modules for modular structure.
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.
MIT Licensed