spences10/skills

svelte-layerchart

Build Svelte LayerChart components. Use for tooltip snippets, Chart context access, gradients, highlights, axes, and Svelte 5 snippet patterns.

First seen May 2, 2026

Installation

$ npx skills add spences10/skills --skill svelte-layerchart

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from spences10/skills · top by installs.

npx skills add spences10/skills

Browse all from spences10/skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 15
Default branch main
Open issues 1
Status Active

Skill metadata

Parsed from SKILL.md frontmatter.

More metadata
last_updated
2026-05-31
verified_against
Svelte 5 official docs and sveltejs/svelte#18282

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,496 B
  • docs SUMMARY.md 186 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 62 installs

SKILL.md

Svelte LayerChart

Docs: layerchart.com

Install

npm i layerchart d3-scale

Quick Start

<Chart {data} x="date" y="value" tooltip={{ mode: 'bisect-x' }}>
	<Svg><Area class="fill-primary/20" /><Highlight points /></Svg>
	<Tooltip.Root>{#snippet children({ data })}{data.value}{/snippet}</Tooltip.Root>
</Chart>

Core Patterns

  • Tooltip: {#snippet children({ data })} - NOT let:data
  • Chart context: {#snippet children({ context })}
  • Gradient: {#snippet children({ gradient })}
  • Enable tooltip: tooltip={{ mode: 'band' | 'bisect-x' }}
  • Type data: {#snippet children({ data }: { data: MyType })}

Tooltip Modes

Mode Use Case
band Bar charts (scaleBand)
bisect-x Time-series area/line
quadtree-x Area (nearest x)
quadtree Scatter plots

References

  • [full-patterns.md](references/full-patterns.md) - Area, Bar, Pie,

Calendar

  • [tooltip-modes.md](references/tooltip-modes.md) - All modes
  • [graph-patterns.md](references/graph-patterns.md) - ForceGraph,

zoom/pan