LayerChart Svelte 5
Use next.layerchart.com docs (NOT layerchart.com - that's Svelte 4).
Quick Start
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 {#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