🌍 Public
Viewing a saved revision (read-only)
ed39b5a7392545d5b797035c0d8aff91
D3 Scatter Plot Najam
This example visualizes the classic Iris dataset as a scatter plot, mapping petal length on the x-axis against sepal length on the y-axis. It loads the CSV data from a GitHub gist, parses the numeric fields, and renders each flower as a small circle. The code uses d3.csv, d3.scaleLinear, and d3.extent to compute scales, then joins data to SVG circles and adds axes with d3.axisLeft and d3.axisBottom. The visualization fills the browser window using window.innerWidth and innerHeight, with margins applied to the plot area.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.