Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Euclid algorithm

Public visualization

Viewing a saved revision (read-only)

9b5ccb225ff0429ea2adb1e937f7f0c9

Euclid algorithm

0 stars0🌍 Public
NNita
Last edited Dec 31, 2022
Created on Dec 31, 2022
Forked from D3 Starter

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 description

A demonstration of how to start using D3 version 6.