Euclid algorithm
✓ Published0🌍 Public
This example demonstrates the Euclidean algorithm by computing the greatest common divisor of two numbers and displaying the result in the browser console. The visualization renders three circles in an SVG using D3 v7, with the `select` API from the d3 module to append SVG elements. The circles are bound to a static array of values, positioned horizontally with fixed radii, while the algorithm’s output is logged rather than visualized directly on the page. The page uses simple HTML and CSS for layout, with no interactive elements present.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed