MCPInstall

syncfusion-react-sparkline

Implement Syncfusion React Sparkline components for compact, inline data visualization. Use this when working with sparklines, mini charts, or trend indicators in constrained spaces. This skill covers all 5 sparkline types (line, column, area, win-loss, pie), tooltips, markers, data labels, range bands, axis customization, and themes. Ideal for displaying data trends within grids, dashboards, or tables without full-sized charts.

Installs
609
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/syncfusion/react-ui-components-skills --skill syncfusion-react-sparkline
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads syncfusion-react-sparkline automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Implementing Syncfusion React Sparklines

A comprehensive guide for implementing Syncfusion React Sparkline components - lightweight, compact charts designed to visualize data trends in minimal space without axes or coordinates.

When to Use This Skill

Use this skill when you need to:

  • Create compact data visualizations in dashboards or grids
  • Display trend indicators inline with data
  • Implement mini charts that consume minimal space
  • Show data patterns in table cells or small containers
  • Create any of the 5 sparkline types: Line, Column, Area, Win-Loss, or Pie
  • Add tooltips, markers, or data labels to sparklines
  • Customize sparkline appearance with themes and colors
  • Implement accessible, responsive sparkline visualizations
  • Integrate sparklines with grids or other components
  • Highlight specific data ranges with range bands

Component Overview

The Syncfusion React Sparkline is a highly condensed chart component that presents data in a simple, compact format. Key features include:

  • 5 Sparkline Types: Line, Column, Area, Win-Loss, and Pie
  • Interactive Features: Tooltips with customization and templates, track lines
  • Visual Markers: Highlight start, end, high, low, and negative points
  • Data Labels: Display values at specific points with formatting
  • Range Bands: Highlight specific value ranges along the y-axis
  • Axis Customization: Support for Numeric, Category, and DateTime value types
  • Themes: Material, Fabric, Bootstrap, and Highcontrast themes
  • Accessibility: WCAG 2.2, Section 508 compliance with WAI-ARIA support
  • Grid Integration: Designed to work seamlessly within grid cells
  • Localization: Support for internationalization

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Dependencies and package installation (@syncfusion/ej2-react-charts)
  • Creating React application with Vite
  • Adding SparklineComponent to project
  • Module injection for tooltip feature
  • Binding data source with dataSource property
  • Changing sparkline type (Line, Column, Area, Win-Loss, Pie)
  • Basic tooltip configuration
  • First working example

Sparkline Types

📄 Read: references/sparkline-types.md

  • Overview of all 5 sparkline types
  • Line type: Continuous trend visualization
  • Column type: Discrete value comparison
  • Area type: Filled trend visualization
  • Win-Loss type: Binary outcome representation
  • Pie type: Proportional data display
  • Type selection guide based on data and use case
  • Complete examples for each type

Appearance Customization

📄 Read: references/appearance-customization.md

  • Sparkline border configuration with containerArea
  • Padding customization (left, right, top, bottom)
  • Container background color
  • Theme selection (Material, Fabric, Bootstrap, Highcontrast)
  • Color and styling best practices
  • Visual design guidelines

Data Labels

📄 Read: references/data-labels.md

  • Enabling data labels for specific points
  • Visibility options: All, Start, End, High, Low, Negative
  • Customizing fill color, border, opacity, and text styles
  • Formatting data label text with format property
  • Displaying x and y values together
  • Data label positioning and readability

Markers

📄 Read: references/markers.md

  • Adding markers to sparkline points
  • Marker visibility options: All, Start, End, High, Low, Negative
  • Special point marker configuration
  • Customizing marker fill, border, size, and opacity
  • Combining markers with other features
  • Best practices for marker usage

User Interaction

📄 Read: references/user-interaction.md

  • Tooltip configuration and SparklineTooltip injection
  • Tooltip customization (fill, text styles, format, border)
  • Creating custom tooltip templates with HTML
  • Track line feature for mouse tracking
  • Track line color and styling
  • Interactive feature best practices

Advanced Features

📄 Read: references/advanced-features.md

  • Axis customization with valueType (Numeric, Category, DateTime)
  • Setting min/max values (minX, maxX, minY, maxY)
  • Axis line customization (color, width, opacity, dashArray)
  • Range bands for highlighting value ranges
  • Multiple range band configuration
  • Special points customization (start, end, positive, negative, low)
  • Tie point color for Win-Loss sparklines
  • Sparkline dimensions (container, pixel, percentage sizing)
  • Localization and culture support

Accessibility

📄 Read: references/accessibility.md

  • WCAG 2.2 and Section 508 compliance
  • WAI-ARIA attributes (img role, aria-label, aria-hidden)
  • Keyboard interaction (Ctrl + P for printing)
  • Screen reader support
  • Right-to-left (RTL) support
  • Color contrast guidelines
  • Mobile device support
  • Accessibility testing tools

API Reference

📄 Read: references/api-reference.md

  • Complete API reference for SparklineComponent: props, events, methods, child directives, and a usage example (based on the official Syncfusion React Sparkline API).

Quick Start

Installation

npm install @syncfusion/ej2-react-charts --save

Basic Sparkline

import { SparklineComponent } from '@syncfusion/ej2-react-charts';
import * as React from 'react';
import * as ReactDOM from 'react-dom';

function App() {
  const data = [0, 6, 4, 1, 3, 2, 5];
  
  return (
    <SparklineComponent
      dataSource={data}
      type="Line"
      height="150px"
      width="300px"
    />
  );
}

export default App;
ReactDOM.render(<App />, document.getElementById('charts'));

Sparkline with Tooltip

import { SparklineComponent, Inject, SparklineTooltip } from '@syncfusion/ej2-react-charts';
import * as React from 'react';
import * as ReactDOM from 'react-dom';

function App() {
  const data = [0, 6, 4, 1, 3, 2, 5];
  
  return (
    <SparklineComponent
      dataSource={data}
      type="Area"
      height="150px"
      width="300px"
      tooltipSettings={{ visible: true, format: '${x} : ${y}' }}
    >
      <Inject services={[SparklineTooltip]} />
    </SparklineComponent>
  );
}

export default App;
ReactDOM.render(<App />, document.getElementById('charts'));

Common Patterns

Column Sparkline with Markers

import { SparklineComponent } from '@syncfusion/ej2-react-charts';
import * as React from 'react';
import * as ReactDOM from 'react-dom';

function ColumnSparkline() {
  const data = [3, 6, 4, 1, 3, 2, 5];
  
  return (
    <SparklineComponent
      dataSource={data}
      type="Column"
      height="150px"
      width="300px"
      markerSettings={{ visible: ['High', 'Low'] }}
      highPointColor="green"
      lowPointColor="red"
    />
  );
}

export default ColumnSparkline;
ReactDOM.render(<ColumnSparkline />, document.getElementById('charts'));

Win-Loss Sparkline

import { SparklineComponent } from '@syncfusion/ej2-react-charts';
import * as React from 'react';
import * as ReactDOM from 'react-dom';

function WinLossSparkline() {
  const data = [12, 15, -10, 13, 15, 6, -12, 17, 13, 0, 8, -10];
  
  return (
    <SparklineComponent
      dataSource={data}
      type="WinLoss"
      height="150px"
      width="300px"
      tiePointColor="blue"
    />
  );
}

export default WinLossSparkline;
ReactDOM.render(<WinLossSparkline />, document.getElementById('charts'));

Sparkline with Data Labels

import { SparklineComponent } from '@syncfusion/ej2-react-charts';
import * as React from 'react';
import * as ReactDOM from 'react-dom';

function SparklineWithLabels() {
  const data = [0, 6, 4, 1, 3, 2, 5];
  
  return (
    <SparklineComponent
      dataSource={data}
      type="Line"
      height="150px"
      width="300px"
      dataLabelSettings={{
        visible: ['Start', 'End'],
        border: { color: 'blue', width: 1 },
        fill: 'blue',
        opacity: 0.4,
        textStyle: { color: 'white' }
      }}
    />
  );
}

export default SparklineWithLabels;
ReactDOM.render(<SparklineWithLabels />, document.getElementById('charts'));

Sparkline with Range Band

import { SparklineComponent } from '@syncfusion/ej2-react-charts';
import * as React from 'react';
import * as ReactDOM from 'react-dom';

function SparklineWithRangeBand() {
  const data = [0, 6, 4, 1, 3, 2, 5];
  
  return (
    <SparklineComponent
      dataSource={data}
      type="Area"
      height="150px"
      width="300px"
      rangeBandSettings={[
        { startRange: 1, endRange: 3, color: '#bfd4fc', opacity: 0.4 }
      ]}
    />
  );
}

export default SparklineWithRangeBand;
ReactDOM.render(<SparklineWithRangeBand />, document.getElementById('charts'));

Key Props Reference

PropertyTypeDescription
dataSourceobject[]Data for the sparkline
typestringSparkline type: 'Line', 'Column', 'Area', 'WinLoss', 'Pie'
xNamestringProperty name for x-axis from dataSource
yNamestringProperty name for y-axis from dataSource
heightstringHeight of the sparkline
widthstringWidth of the sparkline
fillstringColor of the sparkline
valueTypestringAxis value type: 'Numeric', 'Category', 'DateTime'
markerSettingsobjectConfiguration for markers
dataLabelSettingsobjectConfiguration for data labels
tooltipSettingsobjectConfiguration for tooltips
axisSettingsobjectAxis min/max and line customization
rangeBandSettingsobject[]Range band configurations
themestringTheme: 'Material', 'Fabric', 'Bootstrap', 'Highcontrast'
paddingobjectPadding around sparkline (left, right, top, bottom)
containerAreaobjectBorder and background for sparkline area

Common Use Cases

  1. Dashboard Trend Indicators: Display KPI trends inline with metrics
  2. Grid Integration: Show mini charts in table cells
  3. Financial Data: Win-Loss sparklines for stock market gains/losses
  4. Performance Monitoring: Quick visualization of server metrics or response times
  5. Comparison Views: Multiple sparklines side-by-side for data comparison
  6. Mobile Dashboards: Compact visualizations for small screens
  7. Email Reports: Lightweight charts that render quickly
  8. Real-time Monitoring: Simple, fast-updating visualizations

Next Steps

  1. Start with Getting Started: Read references/getting-started.md for installation and basic setup
  2. Choose Your Type: Read references/sparkline-types.md to select the right sparkline type
  3. Customize Appearance: Read references/appearance-customization.md for styling
  4. Add Interactivity: Read references/user-interaction.md for tooltips and track lines
  5. Advanced Configuration: Read references/advanced-features.md for axis, range bands, and more

FAQ

What does the syncfusion-react-sparkline skill do?

Implement Syncfusion React Sparkline components for compact, inline data visualization. Use this when working with sparklines, mini charts, or trend indicators in constrained spaces. This skill covers all 5 sparkline types (line, column, area, win-loss, pie), tooltips, markers, data labels, range bands, axis customization, and themes. Ideal for displaying data trends within grids, dashboards, or tables without full-sized charts.

How do I install syncfusion-react-sparkline?

Run npx skills add https://github.com/syncfusion/react-ui-components-skills --skill syncfusion-react-sparkline in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/syncfusion-react-sparkline/ (personal) or .claude/skills/syncfusion-react-sparkline/ (project).

Which AI agents can use syncfusion-react-sparkline?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is syncfusion-react-sparkline safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains syncfusion-react-sparkline?

It is published by syncfusion in syncfusion/react-ui-components-skills. It has 609 recorded installs.

More from syncfusion/react-ui-components-skills

View all →

syncfusion-react-grid

syncfusion/react-ui-components-skills

Implements Syncfusion React Grid component for feature-rich data tables and grids. Use this when working with data display, sorting, filtering, grouping, aggregates, editing, or exporting. This skill covers grid configuration, CRUD operations, virtual scrolling or infinite scrolling, hierarchy grids, state persistence, and advanced data management features for data-intensive applications.

Frontend & Design824 installs

syncfusion-react-scheduler

syncfusion/react-ui-components-skills

Implement Syncfusion React Scheduler component for calendar, event scheduling, and appointment management. Use this when building scheduling systems, calendar applications, booking systems, or time management interfaces. Covers all scheduler views (Day, Week, Month, Timeline, Agenda, Year), data binding, resource scheduling, recurring events, CRUD operations, drag-and-drop scheduling, customization, accessibility, and advanced features.

Frontend & Design784 installs

syncfusion-react-gantt-chart

syncfusion/react-ui-components-skills

Implement, configure, and customize the Syncfusion React Gantt Chart component. Use this when building project scheduling applications with task timelines, dependencies, resource management, and calendar-driven scheduling. Covers GanttComponent setup, task constraints, taskbar customization, filtering, sorting, Excel/PDF export, critical path analysis, milestones, predecessors, resource view, baseline tracking, and task calendar configuration.

Frontend & Design774 installs

syncfusion-react-rich-text-editor

syncfusion/react-ui-components-skills

Implements the Syncfusion React Rich Text Editor (RichTextEditorComponent) from ej2-react-richtexteditor, supporting HTML (WYSIWYG) and Markdown editing. Use this skill for toolbar configuration, image/video/audio insertion, paste cleanup, AI assistant integration, emoji picker, slash menu, mentions, import/export Word/PDF, form validation, and source code view in React applications.

Frontend & Design758 installs

syncfusion-react-charts

syncfusion/react-ui-components-skills

Implement Syncfusion React Charts component for data visualization. Use this when creating charts, configuring axes and series, or customizing visualization styles. This skill covers chart types, data binding, user interactions, financial indicators, accessibility features, and professional data visualization in React applications.

Frontend & Design750 installs

syncfusion-react-treegrid

syncfusion/react-ui-components-skills

Implements Syncfusion React TreeGrid for hierarchical data with sorting, filtering, editing, exporting, paging, virtual scrolling, and advanced features. Supports configuration, CRUD, aggregates, templates, state persistence, and performance optimization in React applications.

Frontend & Design747 installs

Popular frontend & design skills

View category →

setup-matt-pocock-skills

mattpocock/skills

Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.

Frontend & Design1.1M installs

frontend-design

anthropics/skills

Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.

OfficialFrontend & Design1M installs

hyperframes-animation

heygen-com/hyperframes

All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.

prototype

mattpocock/skills

Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.

Frontend & Design999.2K installs

hyperframes-core

heygen-com/hyperframes

The HyperFrames composition contract — build one renderable project. Use for composition structure, the data- timing attributes, class="clip", tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.

Frontend & Design930.5K installs

vercel-react-best-practices

vercel-labs/agent-skills

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

OfficialFrontend & Design843.1K installs