svelteplot

Compose SveltePlot grammar-of-graphics charts with marks, scales, and transforms for Svelte 5.

1|Updated May 13, 2026
One-click install
npx skills add https://github.com/impact-initiatives/ana_app --skill svelteplot-impact-initiatives
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: svelteplot
Source: https://github.com/impact-initiatives/ana_app/tree/main/.claude/skills/svelteplot
Command: npx skills add https://github.com/impact-initiatives/ana_app --skill svelteplot-impact-initiatives

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you write correct, idiomatic SveltePlot chart components so your Svelte 5 visualizations render reliably and follow the intended grammar-of-graphics structure.

Core Features & Use Cases

  • Idiomatic SveltePlot composition: Build <Plot> views using marks and transforms with predictable data → encoding → render flow.
  • Correct mark usage and channel accessors: Apply field-name strings, accessor functions, constants, and transform-spread patterns so channels map to scales correctly.
  • Practical patterns for real apps: Set up common chart types (line, scatter, histogram, heatmap, geo) and interactive behaviors (tooltips, pointer crosshairs, brushing) consistent with SveltePlot’s APIs.
  • Maintainability guardrails: Reminds you to import marks explicitly and to check SveltePlot alpha/API changes against installed versions.

Quick Start

Use the svelteplot skill while implementing or reviewing a Svelte component that renders a chart, and ensure you import the needed marks from svelteplot and spread transform outputs into mark props.

Frequently Asked Questions about svelteplot

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build interactive charts in Svelte 5 using a grammar of graphics?

Build interactive Svelte 5 charts by composing a <Plot> view with marks, scales, and transforms, mapping data to encoding channels so visualizations render predictably following the grammar of graphics structure.

What is the correct way to map data to chart channels in SveltePlot?

Map data to chart channels correctly in SveltePlot by applying field-name strings, accessor functions, constants, and transform-spread patterns, ensuring channel values map to scales accurately.

How do I set up tooltips and pointer crosshairs for Svelte visualization components?

Set up tooltips and pointer crosshairs for Svelte visualization components by applying SveltePlot's interactive patterns within your mark composition, leveraging the available pointer and tooltip APIs.

Can I create geo maps and heatmaps using SveltePlot with Svelte 5?

You can create geo maps and heatmaps using SveltePlot with Svelte 5 by utilizing the appropriate marks and transforms, constructing these chart types consistent with SveltePlot's current APIs.

Why does my SveltePlot chart component fail to render correctly?

Your SveltePlot chart component may fail to render if marks are not imported explicitly or if transform results are not spread into mark props, violating the required data-to-encoding flow.

Does SveltePlot work with the latest Svelte 5 release or are there API constraints?

SveltePlot works with Svelte 5 but operates under alpha version API constraints, meaning you should check SveltePlot's API changes against your installed version to ensure correct mark usage.