🌍 Public
Task-4(Tutorial-3)
This scatter plot visualizes the Iris dataset by mapping petal length on the x-axis and petal width on the y-axis, with each point colored by species (setosa, versicolor, or virginica). The ellipses also encode sepal length and width via the `rx` and `ry` attributes. Built with D3 v6, it loads CSV data via `d3.csv`, uses `scaleLinear` and `extent` for axes, and renders SVG circles with `axisLeft` and `axisBottom`. The code imports D3 functions through destructuring from the UNPKG-hosted library.
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.