JS in HTML
✓ Published1🌍 Public
This example renders a scatter plot of the Iris dataset, showing the relationship between petal length and sepal length. Data is loaded from a GitHub-hosted CSV using `d3.csv` and parsed to numeric values, then mapped to SVG circles. The visualization uses `d3.select` to create the SVG canvas, `d3.scaleLinear` for both axes with `d3.extent` for domain calculation, and displays the axes with `d3.axisLeft` and `d3.axisBottom`. Each circle includes a tooltip title showing its coordinates. The chart fills the browser window, with margins defined via a constant.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed