Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

JS arrays

Public visualization

Viewing a saved revision (read-only)

fcbb7d32a7c8463091ab8e7f82cd6e49

JS arrays

0 stars0🌍 Public
Ddexuzi
Last edited Aug 16, 2022
Created on Aug 16, 2022
Forked from HTML Starter

Fifteen circles are rendered in a horizontal row across the browser viewport, each with a radius of 20 pixels. The example demonstrates how to bind an array of numbers to SVG elements using D3’s `data()` and `enter()` selection methods. The code uses `d3.select` and `d3.range` to generate the data and append circles to an SVG, with x-positions calculated as `d * 50 + 50` and a fixed y-coordinate of 250. Rendering is done via inline SVG in the HTML document.

AI-generated description