Skip to main content
100%

Fork of smiley d3

✓ Published0🌍 Public
FForemost123
Last edited May 18, 2021
Created on May 18, 2021
Forked from smiley d3

This example shows a large yellow circle centered in an SVG canvas, created as a simple smiley face placeholder. The visualization uses D3 version 6, specifically the `d3.select` method to target the SVG element and read its width and height attributes. The code appends a circle with a fixed radius equal to half the SVG height, positions it at the center using those dimensions, and fills it with yellow. The SVG has a width of 960 pixels and a height of 500 pixels, with text styling set to a very large font size in the page’s body.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes