Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

The Maximum number in prime factorization

Public visualization

Viewing a saved revision (read-only)

f9e78f8dd7d2483bb1abaab30f75592b

The Maximum number in prime factorization

4 stars0🌍 Public
MMTR
Last edited Apr 2, 2021
Created on Mar 29, 2021
Forked from Bubble Sort

This example visualizes the largest prime factor of each integer from 2 to 104, plotting circles at coordinates where the x-axis represents the integer and the y-axis is 500 minus ten times that factor. An SVG line chart connects these points, revealing the scattered pattern of maximum prime factors. The code uses D3 v6 to bind the data array to circles via `selectAll` and `data`, positions them with `attr`, and draws the connecting path using `d3.line()`. Each circle responds to `mouseover` by logging its coordinates to the console.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.