Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Marcus' D3 set pink background #1

Public visualization

Marcus' D3 set pink background #1

0 stars4๐ŸŒ Public
Mms-aus
Last edited Aug 19, 2019
Created on Aug 18, 2019

This example demonstrates a minimal web page that renders an SVG element with a solid pink background. The visualization is created using the D3.js library (version 5) to select the SVG canvas and apply the background color through the `d3.select` API, accessed via the `select` import. The HTML structure defines the SVG with fixed dimensions, while the bundled JavaScript script (`bundle.js`) executes the color styling. The accompanying stylesheet removes default page margins, ensuring the colored SVG fills the viewport without visual interruption.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed