# syncfusion-react-sparkline

Guides the agent through building Syncfusion sparklines in React: five chart types, tooltips, markers and range bands where a full chart will not fit.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 608 installs · ★ 3
- Author: Syncfusion Inc
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/syncfusion/react-ui-components-skills/tree/HEAD/skills/syncfusion-react-sparkline/SKILL.md
- Updated: 2026-10-23
- HTML: https://affpapa.org/en/nevibecode/skills/syncfusion-react-sparkline

## What it does

The skill covers `SparklineComponent` from `@syncfusion/ej2-react-charts`: wiring a data source, switching chart type, adding tooltips and data labels. Reference files walk through each topic, including all five types (line, column, area, win-loss, pie), markers, range bands, axis setup and the Material, Fabric, Bootstrap and Highcontrast themes.

You need the package in the project before any of this works: `npm install @syncfusion/ej2-react-charts --save`. Tooltips are a separate module, so `SparklineTooltip` has to go into the `Inject` list; skip that and the tooltip settings do nothing. Use it for a trend inside a table cell or a dashboard tile, where a normal chart eats the layout.

One reference section is about accessibility, with WCAG 2.2 and Section 508 coverage, WAI-ARIA roles and RTL layouts. Check your own keyboard and contrast requirements against it before writing markup, not after the review comes back.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add syncfusion/react-ui-components-skills --skill syncfusion-react-sparkline -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/syncfusion-react-sparkline/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/syncfusion-react-sparkline/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add syncfusion/react-ui-components-skills --skill syncfusion-react-sparkline -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/syncfusion-react-sparkline/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add syncfusion/react-ui-components-skills --skill syncfusion-react-sparkline -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/syncfusion-react-sparkline/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install syncfusion/react-ui-components-skills syncfusion-react-sparkline
```

2. **Manually: put the files in place**
- File: `.github/skills/syncfusion-react-sparkline/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add syncfusion/react-ui-components-skills --skill syncfusion-react-sparkline -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/syncfusion/react-ui-components-skills --path skills/syncfusion-react-sparkline
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/syncfusion-react-sparkline/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add syncfusion/react-ui-components-skills --skill syncfusion-react-sparkline -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/syncfusion/react-ui-components-skills/tree/HEAD/skills/syncfusion-react-sparkline/SKILL.md

## When to use it
- drop a trend chart into a table cell
- show proportions as a compact pie sparkline
- flag the high and low points with markers
- add a hover tooltip with the point values
- shade an acceptable value range with a band

## Example prompts
- Build an Area sparkline from `[0, 6, 4, 1, 3, 2, 5]` and turn on a tooltip formatted as `${x} : ${y}`
- Put markers on the first and last points of the dashboard card sparkline
- Render a win-loss sparkline for the latest match results in the results table

## Similar
- [recharts](https://affpapa.org/en/nevibecode/skills/recharts.md) — skill · 1100 installs
- [Semiotic](https://affpapa.org/en/nevibecode/mcp/semiotic.md) — MCP server · ★ 2716
- [react-and-nextjs-data-visualization](https://affpapa.org/en/nevibecode/skills/react-and-nextjs-data-visualization.md) — skill · 13 installs
- [data-visualization](https://affpapa.org/en/nevibecode/skills/owl-listener-data-visualization.md) — skill · 2400 installs
- [d3-data-visualization](https://affpapa.org/en/nevibecode/skills/d3-data-visualization.md) — skill · 13 installs
- [swift-charts](https://affpapa.org/en/nevibecode/skills/swift-charts.md) — skill · 4000 installs

From the same set: [syncfusion/react-ui-components-skills](https://affpapa.org/en/nevibecode/by/syncfusion/react-ui-components-skills.md) — 37 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
