Fork of Create a face with d3.js!
✓ Published2🌍 Public
This example shows an animated sunrise scene built with D3.js, transitioning the sky from light blue to orange while a sun rises over mountains. It demonstrates D3’s ability to manipulate SVG elements, using `d3.select` to append and update shapes like rectangles, circles, lines, and polygons. The animation uses `requestAnimationFrame` to move the sun and interpolate colors via `d3.interpolate`, creating a smooth gradient effect. The rendering approach is purely SVG-based, with no external data source.
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