Skip to main content
100%

Shapes with SVG

✓ Published3🌍 Public
Ssunith-kumar
Last edited Dec 10, 2019
Created on Dec 10, 2019
Forked from Hello VizHub

This example demonstrates how to style an SVG canvas using D3.js. It sets the background color of the SVG element to red through the D3 selection API, specifically using `select` and `style`. The visualization includes a blank SVG with a 960x500 pixel viewport, and the code logs the selection and the D3 library to the console. The implementation uses D3 v5 and leverages ES6 module syntax, with an accompanying CSS file defining a Ubuntu font and comment-out design rules.

AI-generated description

An example showing the capabilities of VizHub.

MIT Licensed

Similar vizzes