d3 project fork
✓ Published0🌍 Public
This example shows a colorful SVG scene of a rabbit in a grassy field with a sky, sun, and clouds, built entirely with D3.js version 7 selections. It demonstrates how to use `d3.select` to append and style primitive shapes like `ellipse`, `circle`, and `rect` directly to an SVG canvas. The code uses local ES6 module imports from the `d3` package loaded via UNPKG, and relies on D3’s attribute-chaining API to position and style each element. The static scene is rendered without data binding or transitions, focusing purely on manual drawing with SVG.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed