Skip to main content
100%

D3 testing1

✓ Published1🌍 Public
PPere Ginebra Solanellas
Last edited Jan 25, 2022
Created on Jan 25, 2022
Forked from D3 Starter

This example draws a single SVG circle and text element using D3 v5, displaying the number "3" in blue. The code defines a reusable `createNumIcon` function that appends a stroked circle and a text label to an SVG canvas via `d3.select` and the `append` and `attr` methods. The circle has a fixed radius of 20 pixels and a blue stroke, while the text uses Arial font at 35 pixels. No data is loaded; the visualization is purely static and demonstrates basic SVG shape creation with D3.

AI-generated description

pff

MIT Licensed

Similar vizzes