π Public
Activity_6_Task3_Tutorial
This example visualizes the Iris dataset as a scatter plot, mapping petal length and petal width on the axes while coloring each circle by species (setosa, versicolor, or virginica). The code uses D3 v6 via UNPKG, loading CSV data from a GitHub repository and rendering SVG circles with `scaleLinear`, `extent`, and axis functions. It also applies non-standard `rx` and `ry` attributes to the circles, based on sepal measurements, demonstrating flexible D3 data binding and custom styling.
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
Comments
Sign in to join the discussion.