Skip to main content
100%

My first D3.js vizualization

✓ Published0🌍 Public
Mmazacm01
Last edited Jul 2, 2020
Created on Jul 2, 2020
Forked from HTML Starter

A simple circle centered in an SVG canvas demonstrates the basic structure of a D3.js visualization. The code uses `d3.select` to access the SVG element, calculates its center from the `width` and `height` attributes, and appends a group (`g`) translated to that point. A circle with a radius of 100 pixels and an orange fill is then added to the group, showing how to position and style SVG shapes. The example is built with D3 v5 within a React framework, rendering entirely through SVG without any data binding or external datasets.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes