🌍 Public
Viewing a saved revision (read-only)
611d3575f43443aa8f86c08b63209830
Fork of HTML Starter
This example shows a scatter plot of transaction data, plotting Quantity on the x-axis against Price on the y-axis using D3.js v7. The code defines a small inline dataset, sets up an SVG canvas with margins, and uses `d3.scaleLinear` to map data values to pixels. Circles are rendered with `d3.axisBottom` and `d3.axisLeft` adding the corresponding axes. The visualization is a minimal, static representation of the relationship between the two numeric variables.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.