Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Marcus' D3 set pink background #1

Public visualization

Viewing a saved revision (read-only)

f75202c82fc34cd6b4ccf389da3f3002

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