Activity6_Task3
✓ Published0🌍 Public
This example renders a scatter plot from the Mall_Customers dataset, visualizing the relationship between petal length and petal width, while encoding species type through circle color. It loads data via `d3.csv` from a GitHub raw URL, then uses `d3.scaleLinear` with `d3.extent` to map values to screen coordinates. The SVG circles are drawn with D3’s data join, and axes are created with `d3.axisLeft` and `d3.axisBottom`. The code also references sepal dimensions and displays axis labels using `svg.append('text')`.
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