← Back to list

layerchart-svelte5
by spences10
🦀 Claude Code Skills for Svelte and SvelteKit
⭐ 12🍴 0📅 Jan 21, 2026
SKILL.md
name: layerchart-svelte5
prettier-ignore
description: LayerChart Svelte 5 patterns. Use for chart components with tooltip snippets, Chart context access, and all Svelte 5 snippet patterns for tooltips, gradients, highlights, and axes.
LayerChart Svelte 5
Use next.layerchart.com docs (NOT layerchart.com - that's Svelte 4).
Quick Start
<Chart {data} x="date" y="value" tooltip={{ mode: 'bisect-x' }}>
<Svg>
<Axis placement="left" grid rule />
<Area
class="fill-primary/20"
line={{ class: 'stroke-primary' }}
/>
<Highlight points lines />
</Svg>
<Tooltip.Root>
{#snippet children({ data })}
<Tooltip.Header>{data.date}</Tooltip.Header>
<Tooltip.Item label="Value" value={data.value} />
{/snippet}
</Tooltip.Root>
</Chart>
Core Patterns
- Tooltip:
{#snippet children({ data })}- NOTlet:data - Chart context:
{#snippet children({ context })} - Gradient:
{#snippet children({ gradient })} - Must enable:
tooltip={{ mode: 'band' | 'bisect-x' | 'quadtree' }}
Tooltip Modes
| Mode | Use Case |
|---|---|
band | Bar charts (scaleBand) |
bisect-x | Time-series area/line |
quadtree-x | Area (nearest x) |
quadtree | Scatter plots |
Type the Snippet
{#snippet children({ data }: { data: MyDataType })}
References
- references/full-patterns.md - All patterns
- references/tooltip-modes.md - Mode details
- Clone:
git clone --branch next https://github.com/techniq/layerchart.git
Score
Total Score
55/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
✓最近の活動
1ヶ月以内に更新
+10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
✓タグ
1つ以上のタグが設定されている
+5
Reviews
💬
Reviews coming soon
