🌍 Public
Viewing a saved revision (read-only)
0e05dd47b70c4d51bef61cb095689420
Question 3
This scatter plot displays the relationship between height and weight for a dataset of individuals, with each point colored by its category (A, B, or default orange). The visualization loads CSV data asynchronously using `d3.csv`, then maps height and weight values through `d3.scaleLinear` domains to screen coordinates. Circles are rendered as SVG elements with `d3.selectAll` and `.join`, while the axes are created using `d3.axisLeft` and `d3.axisBottom`. The chart fills the browser window, with green axis labels and a red title.
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.