🌍 Public
Viewing a saved revision (read-only)
93e67dea294c4e62a0e6d1e02945ab50
Activity -6 Task 3
This example displays the classic Iris dataset using a scatter plot to visualize the relationship between petal length and petal width, with each of the three species color-coded (skyblue, lightgreen, orange). The visualization loads CSV data directly from a GitHub repository using d3.csv, maps the data to screen coordinates with d3.scaleLinear, and renders circular markers as SVG elements. Axis labels are added for both dimensions, and the layout adapts to the full browser window size. The code relies on D3 version 6.7.0 for data parsing, scales, and SVG generation.
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.