Skip to main content
100%

example

✓ Published0🌍 Public
RRohithNaiduDevareddy@my.unt.edu
Last edited Feb 28, 2024
Created on Feb 28, 2024
Forked from Circles with D3

This example demonstrates how to draw a simple house with a clock tower using D3.js within a Svelte application. It shows the construction of geometric shapes—a triangle for the roof, rectangles for the house body, door, and window, plus a circular clock with numbers and an hour hand—all positioned relative to the container’s dimensions. The code uses D3’s `select` and `append` methods to build the SVG elements dynamically, while CSS styles the page with a lightcoral background and outlined headings. The visualization renders static vector graphics without data-driven binding, focusing instead on shape composition and styling.

AI-generated description

Creating circles with D3.

Challenge

  • Fork this example
  • Modify it
  • Maybe make it Halloween themed
  • Maybe make it Christmas themed
  • Be creative

Svelte

Here's a video on how to get started with Svelte as well!

MIT Licensed

Similar vizzes