layerchart-svelte5

Docs: next.layerchart.com (NOT layerchart.com - that's Svelte 4)

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "layerchart-svelte5" with this command: npx skills add spences10/svelte-skills-kit/spences10-svelte-skills-kit-layerchart-svelte5

LayerChart Svelte 5

Docs: next.layerchart.com (NOT layerchart.com - that's Svelte 4)

Install

npm i layerchart@next d3-scale

CRITICAL: Use @next tag. Stable (1.x) is Svelte 4 only.

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 - Area, Bar, Pie, Calendar

  • tooltip-modes.md - All modes

  • graph-patterns.md - ForceGraph, zoom/pan

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

sveltekit-structure

No summary provided by upstream source.

Repository SourceNeeds Review
General

svelte-runes

No summary provided by upstream source.

Repository SourceNeeds Review
General

sveltekit-remote-functions

No summary provided by upstream source.

Repository SourceNeeds Review
General

sveltekit-data-flow

No summary provided by upstream source.

Repository SourceNeeds Review