Skip to main content
100%

Marcus' D3 set pink background #1

✓ Published4🌍 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
MIT Licensed

Similar vizzes