Learn D3 in 5 minutes
✓ Published0🌍 Public
This example shows how to create a simple scatterplot-like visualization using D3’s data join pattern. Five circles are bound to an array of numeric values, with each circle’s radius determined by its corresponding data point. The code uses `d3.select`, `.data()`, and `.join()` to bind the array, then applies inline SVG attributes for positioning and CSS styles for fill and stroke colors. Rendering occurs in an SVG element, with D3 v7 loaded via a CDN script tag.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed