🌍 Public
Viewing a saved revision (read-only)
175d76f167d44230b8e3b9a9db4ac2ef
assignment2 vikram
This scatter plot visualizes the relationship between sepal width and sepal length from an Iris dataset loaded via `d3.csv`. The SVG rendering uses `d3.scaleLinear` for both axes, `d3.axisBottom` and `d3.axisLeft` for tick marks, and appends circle elements for each data point. The reusable `ScatterPlot` function takes a container selector and data array, setting up a fixed 600×400 pixel chart with margins and axis labels. Points are colored steelblue with a radius of 3 pixels.
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.