Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Svelte D3 Starter

Public visualization

Viewing a saved revision (read-only)

9d82fa7779674ad89c0b5f126eb9dde6

Svelte D3 Starter

0 stars0🌍 Public
CChris Bushong
Last edited Nov 9, 2021
Created on Nov 9, 2021
Forked from HTML Starter

This example demonstrates a minimal Svelte application that uses two-way data binding to display the sum of two numeric inputs in real time. It shows how Svelte’s reactive declarations update the displayed calculation whenever either input changes. The code imports a Svelte component from `src/App.svelte` and mounts it to the DOM via `new App({ target: document.body })`. The component uses Svelte’s `bind:value` directive on the number inputs, while the project includes D3 v7.1.1 as a dependency but does not invoke any D3 functions here.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.