Partial Scatter Plot with D3
✓ Published1🌍 Public
This example shows a scatter plot of the Iris dataset, mapping petal length to the x-axis and sepal length to the y-axis using D3 v7. The code loads CSV data via `d3.csv`, applies linear scales with `scaleLinear` based on `extent` of the data, and renders circles as SVG elements. It computes pixel coordinates for each data point and joins them to the DOM using `selectAll` and `join`. The visualization fills the entire browser window, with the SVG sized to `window.innerWidth` and `window.innerHeight`.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed