svelte-layerchart

Svelte LayerChart pattern. For chart components with tooltip fragments and chart-context access, adapted to Svelte 5 fragment patterns. Covers fragment use cases for tooltips, gradients, highlights, and axes.

Last repository push
GitHub Stars
96
Forks
3
Issues / PRs
2

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "svelte-layerchart" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-c3dfe3fff751c9d14284695a08c4a5759e662e0b200d6ab2a4d43720f50d2b60. Verify the upstream source and version against https://github.com/spences10/svelte-skills-kit before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Svelte LayerChart pattern. For chart components with tooltip fragments and chart-context access, adapted to Svelte 5 fragment patterns. Covers fragment use cases for tooltips, gradients, highlights, and axes.

0 Downloads

Introduction source: third_party · spences10 · 0.0.1 Reference

SkillPi interpretation

Tasks
Svelte LayerChart patterns. Use for chart components with tooltip snippets, Chart context access, and all Svelte 5 snippet patterns for tooltips, gradients, highlights, and axes.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: svelte-layerchart
# prettier-ignore
description: "Svelte LayerChart patterns. Use for chart components with tooltip snippets, Chart context access, and all Svelte 5 snippet patterns for tooltips, gradients, highlights, and axes."

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

Current listing version

0.0.1

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value78/100

Highlights

  • 提供 Svelte LayerChart 的图表组件模式,适用于前端开发中的数据可视化场景
  • 包含提示片段、上下文访问和 Svelte 5 片段模式,具有广泛实用性
Trigger Precision95/100

Highlights

  • description 明确描述了 Skill 的用途和核心功能,覆盖多种使用场景,边界清晰
Structure and Standards98/100

Highlights

  • 文档结构清晰,包含 Install、Quick Start、Core Patterns、Tooltip Modes 和 References 等章节
  • 有端到端示例,frontmatter 完整,单文件未超过 500 行
Execution Reliability96/100

Highlights

  • 工具来源明确(npm i layerchart d3-scale),参数正确
  • 覆盖了主要异常情况(如不同的 tooltip modes),不可逆操作有确认机制
Evidence Verifiability (mean of the first four)92/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Install or fetch external dependencies

    Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.

    Mentioned in main document · lines 14

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.