Skip to content
Back to skills

Layerchart Svelte5

ASecurity

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.

  • 666 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added February 9, 2026
developmentgit

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill layerchart-svelte5 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Layerchart Svelte5?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Layerchart Svelte5
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-layerchart-svelte5/badge)](https://www.skillsdirectory.com/skills/majiayu000-layerchart-svelte5)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
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

```svelte
<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 })}` - NOT `let: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

```svelte
{#snippet children({ data }: { data: MyDataType })}
```

## References

- [references/full-patterns.md](references/full-patterns.md) - All
  patterns
- [references/tooltip-modes.md](references/tooltip-modes.md) - Mode
  details
- Clone:
  `git clone --branch next https://github.com/techniq/layerchart.git`

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.