This is a simple template for creating data visualizations with Svelte. It was primarily created for my upcoming /newline course, "Better Data Visualizations with Svelte."
It uses Svelte and D3. The D3 modules most commonly used in data visualization are already installed.
It also includes a simple CSS reset, as existing Svelte templates sometimes have styles that break data visualizations. There is little else added, the template is meant to be barebones.
You can clone this template in one of two ways:
- Click the green "Use this template" button on GitHub
- On the command line, run
npx degit connorrothschild/svelte-visualization-template
Run npm install
or pnpm install
to install the dependencies.
Run npm run dev
to start the development server.