Fork of Circles with D3 - jahanlon
This example demonstrates how to create and style SVG circles and rectangles with D3 v7 using the General Update Pattern and method chaining. The visualization renders seven semi-transparent circles with fixed positions, radii, and fill colors, alongside five rectangles of varied dimensions and colors against a pale green background. The code uses the `select`, `data`, and `join` methods to bind array objects to SVG elements, then sets attributes like `cx`, `cy`, `r`, `fill`, and `opacity` dynamically. The data is hardcoded as JavaScript arrays within the `main` function.