q3.6
✓ Published0🌍 Public
This scatter plot visualizes the Iris dataset, mapping petal dimensions for the x- and y-axes, with circles colored by species (setosa, versicolor, virginica) via a color marker function. The D3 v6 code loads CSV data from a GitHub gist using `d3.csv`, scales the numeric petal and sepal variables with `scaleLinear`, and renders the marks as SVG circles. Axes are drawn with `axisLeft` and `axisBottom`, and point size is fixed at a radius of 5 pixels. Sepal lengths and widths are implicitly stored in each datum but not plotted directly.
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