Skip to main content
100%

Fork of Circles with D3

✓ Published0🌍 Public
BBrian Hulbert
Last edited Aug 27, 2025
Created on Aug 27, 2025
Forked from Circles with D3

This example visualizes a polynomial function as a series of fixed-size red circles plotted across a green background. The circles are positioned by evaluating the polynomial y = x² + 3x + 2 at negative increments between -10 and 10, then scaling both coordinates to fit the container dimensions. Using D3 v7, the code selects and joins circle elements via `select().selectAll().data().join()`, applying `cx`, `cy`, `r`, `fill`, and `opacity` attributes. The rendering is computed directly from polynomial constants rather than external data.

AI-generated description
MIT Licensed

Similar vizzes